SELECT 
  category_id, 
  parent_id 
FROM 
  cscart_categories 
WHERE 
  parent_id IN(
    34391, 41289, 1569, 1337, 1334, 1169, 
    1231, 1117, 1321, 1297, 1021, 1022, 
    1149, 5109, 1328, 13058, 30005, 37603, 
    13060, 1019, 30002, 12963, 28750, 7382
  )

Query time 0.00044

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "6.26"
    },
    "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": 30,
      "rows_produced_per_join": 30,
      "filtered": "100.00",
      "using_index": true,
      "cost_info": {
        "read_cost": "3.27",
        "eval_cost": "3.00",
        "prefix_cost": "6.27",
        "data_read_per_join": "77K"
      },
      "used_columns": [
        "category_id",
        "parent_id"
      ],
      "attached_condition": "(`maniamall_cscart`.`cscart_categories`.`parent_id` in (34391,41289,1569,1337,1334,1169,1231,1117,1321,1297,1021,1022,1149,5109,1328,13058,30005,37603,13060,1019,30002,12963,28750,7382))"
    }
  }
}

Result

category_id parent_id
5466 1337
6559 1337
6563 1337
7180 1337
34553 1337
34703 34391
36071 34391
36073 34391