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_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 = 'ro' 
  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 = 'ro' 
  AND cscart_seo_names.company_id = cscart_categories.company_id 
WHERE 
  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 '290/8174/%' 
  AND cscart_categories.company_id = 1 
ORDER BY 
  cscart_categories.is_trash asc, 
  cscart_categories.position asc, 
  cscart_category_descriptions.category asc

Query time 0.00354

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "56.14"
    },
    "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": 50,
            "rows_produced_per_join": 0,
            "filtered": "1.00",
            "index_condition": "(`maniamall_cscart`.`cscart_categories`.`id_path` like '290/8174/%')",
            "cost_info": {
              "read_cost": "55.01",
              "eval_cost": "0.05",
              "prefix_cost": "55.06",
              "data_read_per_join": "1K"
            },
            "used_columns": [
              "category_id",
              "parent_id",
              "id_path",
              "company_id",
              "usergroup_ids",
              "status",
              "position",
              "is_trash"
            ],
            "attached_condition": "((`maniamall_cscart`.`cscart_categories`.`company_id` = 1) and ((`maniamall_cscart`.`cscart_categories`.`usergroup_ids` = '') or (0 <> find_in_set(0,`maniamall_cscart`.`cscart_categories`.`usergroup_ids`)) or (0 <> find_in_set(1,`maniamall_cscart`.`cscart_categories`.`usergroup_ids`))) and (`maniamall_cscart`.`cscart_categories`.`status` = 'A'))"
          }
        },
        {
          "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": [
              "maniamall_cscart.cscart_categories.category_id",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 0,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "0.49",
              "eval_cost": "0.05",
              "prefix_cost": "55.60",
              "data_read_per_join": "1K"
            },
            "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": [
              "maniamall_cscart.cscart_categories.category_id",
              "const",
              "const",
              "const",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 0,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "0.50",
              "eval_cost": "0.05",
              "prefix_cost": "56.15",
              "data_read_per_join": "868"
            },
            "used_columns": [
              "name",
              "object_id",
              "company_id",
              "type",
              "dispatch",
              "path",
              "lang_code"
            ]
          }
        }
      ]
    }
  }
}

Result

category_id parent_id id_path category position status company_id seo_name seo_path
8175 8174 290/8174/8175 Actuatoare Inchidere 90 A 1 actuatoare-inchidere 290/8174
8199 8174 290/8174/8199 Agrafe Clipsuri 90 A 1 agrafe-clipsuri 290/8174
8203 8174 290/8174/8203 Amortizoare Capota Si Hayon 90 A 1 amortizoare-capota-si-hayon 290/8174
8228 8174 290/8174/8228 Aripi Fata Si Spate 90 A 1 aripi-fata-si-spate 290/8174
8230 8174 290/8174/8230 Armatura Bara 90 A 1 armatura-bara 290/8174
8240 8174 290/8174/8240 Balamale Si Cabluri Usi 90 A 1 balamale-si-cabluri-usi 290/8174
8249 8174 290/8174/8249 Bandouri Bara Protectie 90 A 1 bandouri-bara-protectie 290/8174
8250 8174 290/8174/8250 Bandouri Laterale 90 A 1 bandouri-laterale 290/8174
8253 8174 290/8174/8253 Bare Protectie Fata Si Spate 90 A 1 bare-protectie-fata-si-spate 290/8174
8276 8174 290/8174/8276 Brate Stergator Parbriz 90 A 1 brate-stergator-parbriz 290/8174
8280 8174 290/8174/8280 Broaste Inchidere Usi 90 A 1 broaste-inchidere-usi 290/8174
8295 8174 290/8174/8295 Buson Rezervor Combustibil 90 A 1 buson-rezervor-combustibil 290/8174
8311 8174 290/8174/8311 Cabluri Capota 90 A 1 cabluri-capota 290/8174
8334 8174 290/8174/8334 Capac Bara Inel Remorcare 90 A 1 capac-bara-inel-remorcare 290/8174
8339 8174 290/8174/8339 Capace Spalator Faruri 90 A 1 capace-spalator-faruri 290/8174
8340 8174 290/8174/8340 Capote 90 A 1 capote 290/8174
8347 8174 290/8174/8347 Carenaje Aripa Si Motor 90 A 1 carenaje-aripa-si-motor 290/8174
8380 8174 290/8174/8380 Contact Pornire Cheie 90 A 1 contact-pornire-cheie 290/8174
8391 8174 290/8174/8391 Cuie Remorcare 90 A 1 cuie-remorcare 290/8174
8415 8174 290/8174/8415 Diuze Spalator Faruri 90 A 1 diuze-spalator-faruri 290/8174
8422 8174 290/8174/8422 Embleme 90 A 1 embleme 290/8174
8445 8174 290/8174/8445 Grile Bara Protectie 90 A 1 grile-bara-protectie 290/8174
8279 8174 290/8174/8279 Grile Masca Fata 90 A 1 grile-masca-fata 290/8174
8301 8300 290/8174/8300/8301 hayon 90 A 1 hayon 290/8174/8300
8495 8174 290/8174/8495 Imbracaminte Pedale 90 A 1 imbracaminte-pedale 290/8174
8300 8174 290/8174/8300 Inchizatoare Capota 90 A 1 inchizatoare-capota 290/8174
8268 8174 290/8174/8268 Incuietoari Usi Yale 90 A 1 incuietoari-usi-yale 290/8174
8474 8473 290/8174/8473/8474 luneta 90 A 1 luneta-ro 290/8174/8473
8508 8507 290/8174/8507/8508 luneta 90 A 1 luneta 290/8174/8507
8337 8174 290/8174/8337 Manere Usi 90 A 1 manere-usi 290/8174
8371 8174 290/8174/8371 Mecanism Ridicare Geam 90 A 1 mecanism-ridicare-geam 290/8174
8502 8174 290/8174/8502 Mecanisme Inchidere Usi 90 A 1 mecanisme-inchidere-usi 290/8174
8501 8174 290/8174/8501 Mecanisme Stergatoare 90 A 1 mecanisme-stergatoare 290/8174
8507 8174 290/8174/8507 Motoras Stergator Parbriz 90 A 1 motoras-stergator-parbriz 290/8174
8344 8174 290/8174/8344 Oglinzi Exterioare 90 A 1 oglinzi-exterioare 290/8174
8473 8174 290/8174/8473 Pompa Spalator Parbriz 90 A 1 pompa-spalator-parbriz 290/8174
8462 8174 290/8174/8462 Praguri Auto 90 A 1 praguri-auto 290/8174
8447 8174 290/8174/8447 Rezervor De Spalare Parbriz 90 A 1 rezervor-de-spalare-parbriz 290/8174
8566 8174 290/8174/8566 Scuturi Motor 90 A 1 scuturi-motor 290/8174
8518 8174 290/8174/8518 Segmente Reparatie Caroserie 90 A 1 segmente-reparatie-caroserie 290/8174
8316 8174 290/8174/8316 Sistem Reglare Faruri 90 A 1 sistem-reglare-faruri 290/8174
8419 8418 290/8174/8418/8419 Spate 90 A 1 spate 290/8174/8418
8477 8174 290/8174/8477 Stergatoare Luneta 90 A 1 stergatoare-luneta-ro 290/8174
8478 8174 290/8174/8478 Stergatoare Parbriz 90 A 1 stergatoare-parbriz-ro 290/8174
8275 8174 290/8174/8275 Stergator Geam Spate 90 A 1 stergator-geam-spate 290/8174
8616 8615 290/8174/8615/8616 Stopuri 90 A 1 stopuri 290/8174/8615
8615 8174 290/8174/8615 Suport Faruri 90 A 1 suport-faruri 290/8174
8418 8174 290/8174/8418 Suporti Bara Fata 90 A 1 suporti-bara-fata 290/8174
8656 8174 290/8174/8656 Tobe Evacuare 90 A 1 tobe-evacuare 290/8174
8657 8174 290/8174/8657 Tragere Masca Fata 90 A 1 tragere-masca-fata 290/8174