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_categories.company_id, 
  cscart_seo_names.name as seo_name, 
  cscart_seo_names.path as seo_path, 
  cscart_categories.ab__lc_catalog_image_control, 
  cscart_category_descriptions.ab__custom_category_h1 
FROM 
  cscart_categories 
  LEFT JOIN cscart_category_descriptions ON cscart_categories.category_id = cscart_category_descriptions.category_id 
  AND cscart_category_descriptions.lang_code = 'uk' 
  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 = 'uk' 
  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.category_id IN (
    386, 410, 431, 447, 452, 453, 459, 460, 
    483, 490, 507, 510, 524, 565, 587, 589, 
    608, 634, 752, 784, 786, 819, 844, 892, 
    942, 1022, 1067, 1114, 1121
  ) 
  AND cscart_categories.storefront_id IN (0, 1) 
  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.00214

JSON explain

{
  "query_block": {
    "select_id": 1,
    "filesort": {
      "sort_key": "cscart_categories.is_trash, cscart_categories.position, cscart_category_descriptions.category",
      "temporary_table": {
        "nested_loop": [
          {
            "table": {
              "table_name": "cscart_categories",
              "access_type": "range",
              "possible_keys": ["PRIMARY", "c_status", "p_category_id"],
              "key": "PRIMARY",
              "key_length": "3",
              "used_key_parts": ["category_id"],
              "rows": 29,
              "filtered": 100,
              "index_condition": "cscart_categories.category_id in (386,410,431,447,452,453,459,460,483,490,507,510,524,565,587,589,608,634,752,784,786,819,844,892,942,1022,1067,1114,1121)",
              "attached_condition": "cscart_categories.company_id = 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` = 'A' and cscart_categories.storefront_id in (0,1)"
            }
          },
          {
            "table": {
              "table_name": "cscart_category_descriptions",
              "access_type": "eq_ref",
              "possible_keys": ["PRIMARY"],
              "key": "PRIMARY",
              "key_length": "9",
              "used_key_parts": ["category_id", "lang_code"],
              "ref": ["lillyshop_lillyshop.cscart_categories.category_id", "const"],
              "rows": 1,
              "filtered": 100,
              "attached_condition": "trigcond(cscart_category_descriptions.lang_code = 'uk')"
            }
          },
          {
            "table": {
              "table_name": "cscart_seo_names",
              "access_type": "eq_ref",
              "possible_keys": ["PRIMARY", "dispatch"],
              "key": "PRIMARY",
              "key_length": "210",
              "used_key_parts": [
                "object_id",
                "type",
                "dispatch",
                "lang_code",
                "company_id"
              ],
              "ref": [
                "lillyshop_lillyshop.cscart_categories.category_id",
                "const",
                "const",
                "const",
                "const"
              ],
              "rows": 1,
              "filtered": 100,
              "attached_condition": "trigcond(cscart_seo_names.`type` = 'c' and cscart_seo_names.dispatch = '' and cscart_seo_names.lang_code = 'uk')"
            }
          }
        ]
      }
    }
  }
}

Result

category_id parent_id id_path category position status company_id storefront_id product_count seo_name seo_path ab__lc_catalog_image_control ab__custom_category_h1
752 650 502/650/752 Бази Elise Braun 0 A 1 1 22 bazi-elise-braun 502/650 none
1121 930 502/930/1121 Бази для нігтів Siller 0 A 1 1 57 bazi-dlya-nigtiv-siller 502/930 none
565 466 385/466/565 Блискітки Komilfo 0 A 1 1 72 bliskitki-komilfo 385/466 none
589 385 385/589 Бульонки, кнопки, перлини 0 A 1 1 18 bulonki-knopki-perlini 385 none
452 451 451/452 Верхні форми, гелеві тіпси та форми для нарощування нігтів 0 A 1 1 99 formi-dlya-naroschuvannya-nigtiv 451 none
510 406 406/510 Весна, квіти 0 A 1 1 130 vesna-kviti 406 none
942 1066 387/1066/942 Гель-лаки ART світловідбиваючі 0 A 1 1 45 gel-laki-art-svitlovidivayuchi-uk 387/1066 none
786 479 387/479/786 Гель-лаки F.O.X Masha Efrosinina 0 A 1 1 36 gel-laki-f.o.x-masha-efrosinina-uk 387/479 none
819 774 387/774/819 Гель-лаки Molekula Marshmallow 0 A 1 1 7 gel-laki-molekula-marshmallow-uk 387/774 none
784 774 387/774/784 Гель-лаки Molekula світловідбиваючі 0 A 1 1 12 gel-laki-svitlovidbivayuchi-molekula 387/774 none
844 387 387/844 Гель-лаки для нігтів DIS 0 A 1 1 8 gel-laki-dis-uk 387 none
1022 950 387/950/1022 Гель-лаки для нігтів GaMa Disco Cat 0 A 1 1 10 gama-disco-cat-uk 387/950 none
490 390 390/490 Гель-фарби Павутинка 0 A 1 1 15 gel-farbi-pavutinka 390 none
587 385 385/587 Дзеркальна пудра і втирка 0 A 1 1 86 dzerkalna-pudra-i-vtirka 385 none
483 1071 455/456/1071/483 Лаки для стемпінгу Nail Story PASTEL 0 A 1 1 9 laki-dlya-stempingu-nail-story-pastel 455/456/1071 none
507 406 406/507 Люди, обличчя 0 A 1 1 49 lyudi-oblichchya 406 none
386 385 385/386 Наклейки і стрічки для дизайну нігтів 0 A 1 1 45 nakleyki-i-strichki-dlya-dizaynu-nigtiv 385 none
459 458 458/459 Олійка для кутикули та нігтів 0 A 1 1 145 oliyka-dlya-kutikuli-ta-nigtiv 458 none
447 406 406/447 Осінь, листя, гілочки 0 A 1 1 87 osin-listya-gilochki 406 none
453 385 385/453 Паєтки, каміфубіки, сухоцвіти 0 A 1 1 86 paietki-kamifubiki-suhocviti 385 none
460 455 455/460 Пластини для стемпінгу 0 A 1 1 109 plastini-dlya-stempingu 455 none
431 406 406/431 Різне 0 A 1 1 69 rizne 406 none
892 406 406/892 Слайди розпродаж 0 A 1 1 113 slaydi-rozprodazh-uk 406 none
1067 1084 502/1084/1067 Топи для нігтів ART 0 A 1 1 37 topi-art 502/1084 none
1114 472 502/472/1114 Топи для нігтів Kira Nails 0 A 1 1 26 topi-dlya-nigtiv-kira-nails 502/472 none
634 763 502/763/634 Топи для нігтів Saga 0 A 1 1 19 topi-dlya-gel-lakiv-saga 502/763 none
410 385 385/410 Фольга для дизайну 0 A 1 1 73 folga-dlya-dizaynu 385 none
608 406 406/608 Френч, геометрія 0 A 1 1 23 geometriya-abstrakciya-uk 406 none
524 417 417/524 Лампи настільні 27 A 1 1 10 lampi-nastilni 417 top