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.product_count, 
  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 = 'en' 
  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 = 'en' 
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 '2910/3105/%' 
  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.00571

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "184.91"
    },
    "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": 127,
            "rows_produced_per_join": 2,
            "filtered": "2.00",
            "index_condition": "(`webmarco`.`cscart_categories`.`id_path` like '2910/3105/%')",
            "cost_info": {
              "read_cost": "178.30",
              "eval_cost": "0.51",
              "prefix_cost": "178.81",
              "data_read_per_join": "15K"
            },
            "used_columns": [
              "category_id",
              "parent_id",
              "id_path",
              "company_id",
              "usergroup_ids",
              "status",
              "product_count",
              "position",
              "is_trash",
              "storefront_id"
            ],
            "attached_condition": "(((`webmarco`.`cscart_categories`.`usergroup_ids` = '') or find_in_set(0,`webmarco`.`cscart_categories`.`usergroup_ids`) or find_in_set(1,`webmarco`.`cscart_categories`.`usergroup_ids`)) and (`webmarco`.`cscart_categories`.`status` = 'A') and (`webmarco`.`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": [
              "webmarco.cscart_categories.category_id",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 2,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "2.54",
              "eval_cost": "0.51",
              "prefix_cost": "181.86",
              "data_read_per_join": "10K"
            },
            "used_columns": [
              "category_id",
              "lang_code",
              "category"
            ]
          }
        },
        {
          "table": {
            "table_name": "cscart_seo_names",
            "access_type": "ref",
            "possible_keys": [
              "PRIMARY",
              "dispatch"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "object_id",
              "type",
              "dispatch",
              "lang_code"
            ],
            "key_length": "206",
            "ref": [
              "webmarco.cscart_categories.category_id",
              "const",
              "const",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 2,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "2.54",
              "eval_cost": "0.51",
              "prefix_cost": "184.91",
              "data_read_per_join": "4K"
            },
            "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 product_count seo_name seo_path
3123 3104 2910/3105/3104/3123 Buckets 0 A 0 0 1 buckets-en 2910/3105/3104
3124 3104 2910/3105/3104/3124 Carpet Sweepers 0 A 0 0 0 carpet-sweepers-en 2910/3105/3104
9832 3105 2910/3105/9832 Household Cleaning Supplies 0 A 0 0 22 household-cleaning-supplies-en 2910/3105
3161 3130 2910/3105/3104/3130/3161 All-Purpose Cleaners 0 A 0 0 114 all-purpose-cleaners 2910/3105/3104/3130
3283 3223 2910/3105/3223/3283 Bleach 0 A 0 0 3 bleach 2910/3105/3223
3367 3226 2910/3105/3226/3367 Boot Pulls 0 A 0 0 0 boot-pulls 2910/3105/3226
3120 3104 2910/3105/3104/3120 Broom & Mop Handles 0 A 0 0 0 broom-and-mop-handles-en 2910/3105/3104
3121 3104 2910/3105/3104/3121 Broom Heads 0 A 0 0 0 broom-heads-en 2910/3105/3104
3122 3104 2910/3105/3104/3122 Brooms 0 A 0 0 0 brooms-en 2910/3105/3104
3162 3130 2910/3105/3104/3130/3162 Carpet Cleaners 0 A 0 0 0 carpet-cleaners 2910/3105/3104/3130
3402 3390 2910/3105/3228/3390/3402 Charging Valets 0 A 0 0 0 charging-valets-en 2910/3105/3228/3390
3125 3104 2910/3105/3104/3125 Cleaning Gloves 0 A 0 0 6 cleaning-gloves-en 2910/3105/3104
3403 3390 2910/3105/3228/3390/3403 Closet Organizers & Garment Racks 0 A 0 0 0 closet-organizers-and-garment-racks-en 2910/3105/3228/3390
3404 3390 2910/3105/3228/3390/3404 Clothes Valets 0 A 0 0 0 clothes-valets-en 2910/3105/3228/3390
3284 3223 2910/3105/3223/3284 Clothespins 0 A 0 0 2 clothespins 2910/3105/3223
3390 3228 2910/3105/3228/3390 Clothing & Closet Storage 0 A 0 0 5 clothing-and-closet-storage-en 2910/3105/3228
3163 3130 2910/3105/3104/3130/3163 Descalers & Decalcifiers 0 A 0 0 3 descalers-and-decalcifiers 2910/3105/3104/3130
3164 3130 2910/3105/3104/3130/3164 Dish Detergent & Soap 0 A 0 0 56 dish-detergent-and-soap 2910/3105/3104/3130
3165 3130 2910/3105/3104/3130/3165 Dishwasher Cleaners 0 A 0 0 8 dishwasher-cleaners 2910/3105/3104/3130
3110 3105 2910/3105/3110 Drawer & Shelf Liners 0 A 0 0 0 drawer-and-shelf-liners-en 2910/3105
3285 3223 2910/3105/3223/3285 Dry Cleaning Kits 0 A 0 0 22 dry-cleaning-kits 2910/3105/3223
3286 3223 2910/3105/3223/3286 Drying Racks & Hangers 0 A 0 0 15 drying-racks-and-hangers 2910/3105/3223
3126 3104 2910/3105/3104/3126 Duster Refills 0 A 0 0 0 duster-refills-en 2910/3105/3104
3127 3104 2910/3105/3104/3127 Dusters 0 A 0 0 0 dusters-en 2910/3105/3104
3128 3104 2910/3105/3104/3128 Dustpans 0 A 0 0 1 dustpans-en 2910/3105/3104
3166 3130 2910/3105/3104/3130/3166 Fabric & Upholstery Cleaners 0 A 0 0 5 fabric-and-upholstery-cleaners 2910/3105/3104/3130
3129 3104 2910/3105/3104/3129 Fabric & Upholstery Protectors 0 A 0 0 0 fabric-and-upholstery-protectors-en 2910/3105/3104
3287 3223 2910/3105/3223/3287 Fabric Refreshers 0 A 0 0 0 fabric-refreshers 2910/3105/3223
3288 3223 2910/3105/3223/3288 Fabric Shavers 0 A 0 0 0 fabric-shavers 2910/3105/3223
3289 3223 2910/3105/3223/3289 Fabric Softeners & Dryer Sheets 0 A 0 0 4 fabric-softeners-and-dryer-sheets 2910/3105/3223
3290 3223 2910/3105/3223/3290 Fabric Stain Removers 0 A 0 0 0 fabric-stain-removers 2910/3105/3223
3291 3223 2910/3105/3223/3291 Fabric Starch 0 A 0 0 47 fabric-starch 2910/3105/3223
3260 3222 2910/3105/3222/3260 Facial Tissues 0 A 0 0 8 facial-tissues-en 2910/3105/3222
3391 3228 2910/3105/3228/3391 Flatware Chests 0 A 0 0 0 flatware-chests-en 2910/3105/3228
3167 3130 2910/3105/3104/3130/3167 Floor Cleaners 0 A 0 0 90 floor-cleaners 2910/3105/3104/3130
3111 3105 2910/3105/3111 Floor Protection Films & Runners 0 A 0 0 0 floor-protection-films-and-runners-en 2910/3105
3347 3225 2910/3105/3225/3347 Fly Swatters 0 A 0 0 0 fly-swatters 2910/3105/3225
3168 3130 2910/3105/3104/3130/3168 Furniture Cleaners & Polish 0 A 0 0 15 furniture-cleaners-and-polish 2910/3105/3104/3130
3112 3105 2910/3105/3112 Furniture Floor Protectors 0 A 0 0 0 furniture-floor-protectors-en 2910/3105
3113 3105 2910/3105/3113 Garage Floor Mats 0 A 0 0 0 garage-floor-mats-en 2910/3105
3114 3105 2910/3105/3114 Garbage Bags 0 A 0 0 4 garbage-bags-en 2910/3105
3292 3223 2910/3105/3223/3292 Garment Shields 0 A 0 0 0 garment-shields 2910/3105/3223
3169 3130 2910/3105/3104/3130/3169 Glass & Surface Cleaners 0 A 0 0 0 glass-and-surface-cleaners 2910/3105/3104/3130
3405 3390 2910/3105/3228/3390/3405 Hangers 0 A 0 0 100 hangers-en 2910/3105/3228/3390
3406 3390 2910/3105/3228/3390/3406 Hat Boxes 0 A 0 0 0 hat-boxes-en 2910/3105/3228/3390
3130 3104 2910/3105/3104/3130 Household Cleaning Products 0 A 0 0 117 household-cleaning-products-en 2910/3105/3104
3104 3105 2910/3105/3104 Household Cleaning Supplies 0 A 0 0 407 household-cleaning-supplies 2910/3105
3170 3130 2910/3105/3104/3130/3170 Household Disinfectants 0 A 0 0 22 household-disinfectants 2910/3105/3104/3130
3392 3228 2910/3105/3228/3392 Household Drawer Organizer Inserts 0 A 0 0 0 household-drawer-organizer-inserts-en 2910/3105/3228
3222 3105 2910/3105/3222 Household Paper Products 0 A 0 0 0 household-paper-products 2910/3105
3393 3228 2910/3105/3228/3393 Household Storage Bags 0 A 0 0 0 household-storage-bags-en 2910/3105/3228
3394 3228 2910/3105/3228/3394 Household Storage Caddies 0 A 0 0 0 household-storage-caddies-en 2910/3105/3228
3395 3228 2910/3105/3228/3395 Household Storage Containers 0 A 0 0 0 household-storage-containers-en 2910/3105/3228
3396 3228 2910/3105/3228/3396 Household Storage Drawers 0 A 0 0 0 household-storage-drawers-en 2910/3105/3228
3269 3105 2910/3105/3269 Household Thermometers 0 A 0 0 2 household-thermometers 2910/3105
3293 3223 2910/3105/3223/3293 Iron Rests 0 A 0 0 0 iron-rests 2910/3105/3223
3294 3223 2910/3105/3223/3294 Ironing Board Pads & Covers 0 A 0 0 0 ironing-board-pads-and-covers 2910/3105/3223
3295 3223 2910/3105/3223/3295 Ironing Board Replacement Parts 0 A 0 0 0 ironing-board-replacement-parts 2910/3105/3223
3296 3223 2910/3105/3223/3296 Ironing Boards 0 A 0 0 0 ironing-boards 2910/3105/3223
3297 3223 2910/3105/3223/3297 Laundry Balls 0 A 0 0 0 laundry-balls 2910/3105/3223
3298 3223 2910/3105/3223/3298 Laundry Baskets 0 A 0 0 0 laundry-baskets 2910/3105/3223
3299 3223 2910/3105/3223/3299 Laundry Detergent 0 A 0 0 545 laundry-detergent 2910/3105/3223
3223 3105 2910/3105/3223 Laundry Supplies 0 A 0 0 10 laundry-supplies 2910/3105
3300 3223 2910/3105/3223/3300 Laundry Wash Bags & Frames 0 A 0 0 0 laundry-wash-bags-and-frames 2910/3105/3223
3301 3223 2910/3105/3223/3301 Lint Rollers 0 A 0 0 0 lint-rollers-en 2910/3105/3223
3224 3105 2910/3105/3224 Moisture Absorbers 0 A 0 0 1 moisture-absorbers 2910/3105
3131 3104 2910/3105/3104/3131 Mop Heads & Refills 0 A 0 0 0 mop-heads-and-refills-en 2910/3105/3104
3132 3104 2910/3105/3104/3132 Mops 0 A 0 0 0 mops-en 2910/3105/3104
3171 3130 2910/3105/3104/3130/3171 Oven & Grill Cleaners 0 A 0 0 0 oven-and-grill-cleaners 2910/3105/3104/3130
3261 3222 2910/3105/3222/3261 Paper Napkins 0 A 0 0 18 paper-napkins-en 2910/3105/3222
3262 3222 2910/3105/3222/3262 Paper Towels 0 A 0 0 27 paper-towels-en 2910/3105/3222
3225 3105 2910/3105/3225 Pest Control 0 A 0 0 0 pest-control 2910/3105
3348 3225 2910/3105/3225/3348 Pest Control Traps 0 A 0 0 0 pest-control-traps 2910/3105/3225
3349 3225 2910/3105/3225/3349 Pesticides 0 A 0 0 63 pesticides 2910/3105/3225
3172 3130 2910/3105/3104/3130/3172 Pet Odor & Stain Removers 0 A 0 0 0 pet-odor-and-stain-removers 2910/3105/3104/3130
3568 3397 2910/3105/3228/3397/3568 Photo Albums 0 A 0 0 12 photo-albums 2910/3105/3228/3397
3397 3228 2910/3105/3228/3397 Photo Storage 0 A 0 0 0 photo-storage-en 2910/3105/3228
3350 3225 2910/3105/3225/3350 Repellents 0 A 0 0 30 repellents 2910/3105/3225
3173 3130 2910/3105/3104/3130/3173 Rinse Aids 0 A 0 0 0 rinse-aids 2910/3105/3104/3130
3133 3104 2910/3105/3104/3133 Scrub Brush Heads & Refills 0 A 0 0 0 scrub-brush-heads-and-refills-en 2910/3105/3104
3134 3104 2910/3105/3104/3134 Scrub Brushes 0 A 0 0 0 scrub-brushes-en 2910/3105/3104
3368 3226 2910/3105/3226/3368 Shoe Bags 0 A 0 0 0 shoe-bags 2910/3105/3226
3369 3226 2910/3105/3226/3369 Shoe Brushes 0 A 0 0 0 shoe-brushes 2910/3105/3226
3226 3105 2910/3105/3226 Shoe Care & Tools 0 A 0 0 7 shoe-care-and-tools 2910/3105
3370 3226 2910/3105/3226/3370 Shoe Care Kits 0 A 0 0 0 shoe-care-kits 2910/3105/3226
3371 3226 2910/3105/3226/3371 Shoe Dryers 0 A 0 0 0 shoe-dryers 2910/3105/3226
3372 3226 2910/3105/3226/3372 Shoe Horns & Dressing Aids 0 A 0 0 0 shoe-horns-and-dressing-aids 2910/3105/3226
3373 3226 2910/3105/3226/3373 Shoe Polishers 0 A 0 0 2 shoe-polishers 2910/3105/3226
3374 3226 2910/3105/3226/3374 Shoe Polishes & Waxes 0 A 0 0 0 shoe-polishes-and-waxes 2910/3105/3226
3407 3390 2910/3105/3228/3390/3407 Shoe Racks & Organizers 0 A 0 0 13 shoe-racks-and-organizers-en 2910/3105/3228/3390
3375 3226 2910/3105/3226/3375 Shoe Scrapers 0 A 0 0 0 shoe-scrapers 2910/3105/3226
3376 3226 2910/3105/3226/3376 Shoe Treatments & Dyes 0 A 0 0 0 shoe-treatments-and-dyes 2910/3105/3226
3377 3226 2910/3105/3226/3377 Shoe Trees & Shapers 0 A 0 0 0 shoe-trees-and-shapers 2910/3105/3226
3135 3104 2910/3105/3104/3135 Shop Towels & General-Purpose Cleaning Cloths 0 A 0 0 14 shop-towels-and-general-purpose-cleaning-cloths-en 2910/3105/3104
3136 3104 2910/3105/3104/3136 Sponges & Scouring Pads 0 A 0 0 21 sponges-and-scouring-pads-en 2910/3105/3104
3137 3104 2910/3105/3104/3137 Squeegees 0 A 0 0 0 squeegees-en 2910/3105/3104
3174 3130 2910/3105/3104/3130/3174 Stainless Steel Cleaners & Polishes 0 A 0 0 0 stainless-steel-cleaners-and-polishes 2910/3105/3104/3130
3227 3105 2910/3105/3227 Stair Treads 0 A 0 0 0 stair-treads 2910/3105
3228 3105 2910/3105/3228 Storage & Organization 0 A 0 0 119 storage-and-organization 2910/3105
3398 3228 2910/3105/3228/3398 Storage Hooks & Racks 0 A 0 0 0 storage-hooks-and-racks-en 2910/3105/3228
3175 3130 2910/3105/3104/3130/3175 Toilet Bowl Cleaners 0 A 0 0 14 toilet-bowl-cleaners 2910/3105/3104/3130
3263 3222 2910/3105/3222/3263 Toilet Paper 0 A 0 0 10 toilet-paper-en 2910/3105/3222
3229 3105 2910/3105/3229 Trash Compactor Accessories 0 A 0 0 0 trash-compactor-accessories 2910/3105
3176 3130 2910/3105/3104/3130/3176 Tub & Tile Cleaners 0 A 0 0 0 tub-and-tile-cleaners 2910/3105/3104/3130
3177 3130 2910/3105/3104/3130/3177 Washing Machine Cleaners 0 A 0 0 3 washing-machine-cleaners 2910/3105/3104/3130
3230 3105 2910/3105/3230 Waste Containment 0 A 0 0 55 waste-containment 2910/3105
3231 3105 2910/3105/3231 Waste Containment Accessories 0 A 0 0 1 waste-containment-accessories 2910/3105
3302 3223 2910/3105/3223/3302 Wrinkle Releasers & Anti-Static Sprays 0 A 0 0 0 wrinkle-releasers-and-anti-static-sprays 2910/3105/3223
3551 3350 2910/3105/3225/3350/3551 Animal & Pet Repellents 10 A 0 0 2 animal-and-pet-repellents 2910/3105/3225/3350
3587 3230 2910/3105/3230/3587 Dumpsters 10 A 0 0 0 dumpsters 2910/3105/3230
3724 3169 2910/3105/3104/3130/3169/3724 Glass Cleaners 10 A 0 0 5 glass-cleaners 2910/3105/3104/3130/3169
9962 9832 2910/3105/9832/9962 Hand Wipes 10 A 0 0 0 hand-wipes 2910/3105/9832
3577 3398 2910/3105/3228/3398/3577 Ironing Board Hooks & Racks 10 A 0 0 0 ironing-board-hooks-and-racks 2910/3105/3228/3398
3570 3397 2910/3105/3228/3397/3570 Photo Storage Boxes 10 A 0 0 0 photo-storage-boxes 2910/3105/3228/3397
9020 3105 2910/3105/9020 Rug Pads 10 A 0 0 0 rug-pads-en 2910/3105
3708 3231 2910/3105/3231/3708 Waste Container Carts 10 A 0 0 0 waste-container-carts 2910/3105/3231
3709 3231 2910/3105/3231/3709 Waste Container Enclosures 20 A 0 0 0 waste-container-enclosures 2910/3105/3231
3588 3230 2910/3105/3230/3588 Hazardous Waste Containers 20 A 0 0 0 hazardous-waste-containers 2910/3105/3230
3559 3350 2910/3105/3225/3350/3559 Household Insect Repellents 20 A 0 0 35 household-insect-repellents 2910/3105/3225/3350
3728 3169 2910/3105/3104/3130/3169/3728 Multi-surface Cleaners 20 A 0 0 0 multi-surface-cleaners 2910/3105/3104/3130/3169
3580 3398 2910/3105/3228/3398/3580 Umbrella Stands & Racks 20 A 0 0 7 umbrella-stands-and-racks 2910/3105/3228/3398
3590 3230 2910/3105/3230/3590 Recycling Containers 30 A 0 0 0 recycling-containers 2910/3105/3230
3581 3398 2910/3105/3228/3398/3581 Utility Hooks 30 A 0 0 0 utility-hooks 2910/3105/3228/3398
3714 3231 2910/3105/3231/3714 Waste Container Labels & Signs 30 A 0 0 0 waste-container-labels-and-signs 2910/3105/3231
3594 3230 2910/3105/3230/3594 Trash Cans & Wastebaskets 40 A 0 0 31 trash-cans-and-wastebaskets 2910/3105/3230
3715 3231 2910/3105/3231/3715 Waste Container Lids 40 A 0 0 0 waste-container-lids 2910/3105/3231
3718 3231 2910/3105/3231/3718 Waste Container Wheels 50 A 0 0 0 waste-container-wheels 2910/3105/3231