SELECT 
  q_categories.category_id, 
  q_categories.parent_id, 
  q_categories.id_path, 
  q_category_descriptions.category, 
  q_categories.position, 
  q_categories.status, 
  q_seo_names.name as seo_name, 
  q_seo_names.path as seo_path, 
  q_categories.ab__lc_catalog_image_control 
FROM 
  q_categories 
  LEFT JOIN q_category_descriptions ON q_categories.category_id = q_category_descriptions.category_id 
  AND q_category_descriptions.lang_code = 'en' 
  LEFT JOIN q_seo_names ON q_seo_names.object_id = q_categories.category_id 
  AND q_seo_names.type = 'c' 
  AND q_seo_names.dispatch = '' 
  AND q_seo_names.lang_code = 'en' 
WHERE 
  1 = 1 
  AND (
    q_categories.usergroup_ids = '' 
    OR FIND_IN_SET(0, q_categories.usergroup_ids) 
    OR FIND_IN_SET(1, q_categories.usergroup_ids)
  ) 
  AND q_categories.status IN ('A') 
  AND q_categories.level <= 3 
  AND q_categories.category_id IN(
    12, 50, 77, 79, 604, 91, 99, 6, 159, 167, 
    190, 200, 248, 257, 264, 266, 273, 276, 
    278, 290, 302, 303, 323, 329, 330, 352, 
    361, 364, 391, 392, 393, 207, 469, 470, 
    475, 544, 546, 555, 598
  ) 
ORDER BY 
  q_categories.is_trash asc, 
  q_categories.position asc, 
  q_category_descriptions.category asc

Query time 0.00300

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "96.73"
    },
    "ordering_operation": {
      "using_temporary_table": true,
      "using_filesort": true,
      "nested_loop": [
        {
          "table": {
            "table_name": "q_categories",
            "access_type": "range",
            "possible_keys": [
              "PRIMARY",
              "c_status",
              "p_category_id"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "category_id"
            ],
            "key_length": "3",
            "rows_examined_per_scan": 39,
            "rows_produced_per_join": 1,
            "filtered": "3.33",
            "index_condition": "(`portal`.`q_categories`.`category_id` in (12,50,77,79,604,91,99,6,159,167,190,200,248,257,264,266,273,276,278,290,302,303,323,329,330,352,361,364,391,392,393,207,469,470,475,544,546,555,598))",
            "cost_info": {
              "read_cost": "93.35",
              "eval_cost": "0.26",
              "prefix_cost": "93.61",
              "data_read_per_join": "3K"
            },
            "used_columns": [
              "category_id",
              "parent_id",
              "id_path",
              "level",
              "usergroup_ids",
              "status",
              "position",
              "is_trash",
              "ab__lc_catalog_image_control"
            ],
            "attached_condition": "(((`portal`.`q_categories`.`usergroup_ids` = '') or find_in_set(0,`portal`.`q_categories`.`usergroup_ids`) or find_in_set(1,`portal`.`q_categories`.`usergroup_ids`)) and (`portal`.`q_categories`.`status` = 'A') and (`portal`.`q_categories`.`level` <= 3))"
          }
        },
        {
          "table": {
            "table_name": "q_category_descriptions",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "category_id",
              "lang_code"
            ],
            "key_length": "9",
            "ref": [
              "portal.q_categories.category_id",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 1,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "1.30",
              "eval_cost": "0.26",
              "prefix_cost": "95.17",
              "data_read_per_join": "3K"
            },
            "used_columns": [
              "category_id",
              "lang_code",
              "category"
            ]
          }
        },
        {
          "table": {
            "table_name": "q_seo_names",
            "access_type": "ref",
            "possible_keys": [
              "PRIMARY",
              "dispatch"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "object_id",
              "type",
              "dispatch",
              "lang_code"
            ],
            "key_length": "206",
            "ref": [
              "portal.q_categories.category_id",
              "const",
              "const",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 1,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "1.30",
              "eval_cost": "0.26",
              "prefix_cost": "96.73",
              "data_read_per_join": "2K"
            },
            "used_columns": [
              "name",
              "object_id",
              "type",
              "dispatch",
              "path",
              "lang_code"
            ]
          }
        }
      ]
    }
  }
}

Result

category_id parent_id id_path category position status seo_name seo_path ab__lc_catalog_image_control
470 469 207/469/470 Camping & Hiking 10 A camping-and-hiking 207/469 none
303 302 248/302/303 Girls 10 A girls 248/302 none
330 302 248/302/330 Boys 20 A boys 248/302 none
159 6 6/159 Decor 20 A decor 6 none
264 257 248/257/264 Garden & Pool 20 A garden-pool 248/257 none
6 0 6 Home & Decor 20 A home-and-decor none
50 12 12/50 Mens Fashion 20 A mens-fashion 12 none
257 248 248/257 Outdoor Play 20 A outdoor-play 248 none
546 544 248/544/546 School Bags 20 A school-bags 248/544 none
77 50 12/50/77 Bags 30 A bags 12/50 none
276 273 248/273/276 Candles & Lights 30 A candles-and-lights 248/273 none
12 0 12 Fashion 30 A fashion none
364 361 248/361/364 Health & Baby Care 30 A health-and-baby-care 248/361 none
273 248 248/273 Party Time 30 A party-time 248 none
91 604 12/604/91 Sunglasses 30 A sunglasses 12/604 none
278 248 248/278 Gear 40 A gear 248 none
190 0 190 Mobiles & Tablets 40 A mobiles-tablets none
290 278 248/278/290 Bags 50 A bags 248/278 none
555 12 12/555 Bags & Luggage 50 A bags-and-luggage 12 none
302 248 248/302 Kids Fashion 50 A kids-fashion 248 none
207 0 207 Sport & Fitness 50 A sport-fitness none
391 361 248/361/391 Towels 50 A towels 248/361 none
361 248 248/361 Bath & Baby Care 60 A bath-and-baby-care 248 none
248 0 248 Kids Corner 60 A kids-corner none
392 361 248/361/392 Tumblers 60 A tumblers 248/361 none
393 248 248/393 Electronics 70 A electronics 248 none
604 12 12/604 Eyewear 70 A eyewear 12 none
167 159 6/159/167 Lighting 80 A lighting 6/159 none
544 248 248/544 School & Stationery 90 A school-and-stationery 248 none
200 190 190/200 Corded Headsets 100 A corded-headsets 190 none
598 248 248/598 Nursery Bedding & Mattresses 120 A nursery-bedding-and-mattresses 248 none
469 207 207/469 Outdoor Recreation 180 A outdoor-recreation 207 none