SELECT 
  category_id, 
  parent_id 
FROM 
  cscart_categories 
WHERE 
  parent_id IN(
    28993, 29000, 28996, 29002, 29003, 29004, 
    29008, 28998, 30406, 29006, 29001, 
    30497, 29012, 29020, 29011, 29021, 
    29016, 29013, 29005, 28999, 30487, 
    29028, 29018, 30504, 29030, 29031, 
    29015, 30494, 29022, 29007, 30488
  )

Query time 0.00041

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "12.55"
    },
    "table": {
      "table_name": "cscart_categories",
      "access_type": "range",
      "possible_keys": [
        "parent"
      ],
      "key": "parent",
      "used_key_parts": [
        "parent_id"
      ],
      "key_length": "3",
      "rows_examined_per_scan": 58,
      "rows_produced_per_join": 58,
      "filtered": "100.00",
      "using_index": true,
      "cost_info": {
        "read_cost": "6.75",
        "eval_cost": "5.80",
        "prefix_cost": "12.55",
        "data_read_per_join": "150K"
      },
      "used_columns": [
        "category_id",
        "parent_id"
      ],
      "attached_condition": "(`maniamall_cscart`.`cscart_categories`.`parent_id` in (28993,29000,28996,29002,29003,29004,29008,28998,30406,29006,29001,30497,29012,29020,29011,29021,29016,29013,29005,28999,30487,29028,29018,30504,29030,29031,29015,30494,29022,29007,30488))"
    }
  }
}

Result

category_id parent_id
28996 28993
28998 28993
28999 28993
29001 28993
29002 28993
29003 28993
29004 28993
29006 28993
29007 28993
29008 28993
29011 28993
29012 28993
29013 28993
29015 28993
29016 28993
29018 28993
29020 28993
29021 28993
29022 28993
29028 28993
29030 28993
29031 28993
30406 28993
30487 28993
29000 28999
29005 28999
30488 30487
30494 30487
30497 30487
30504 30487