SELECT 
  category_id, 
  parent_id 
FROM 
  cscart_categories 
WHERE 
  parent_id IN(
    2985, 2992, 2993, 3005, 3006, 3007, 3134, 
    3151, 3275, 3276, 3277, 3278, 3279, 
    3280, 3281, 3288, 3343, 3374, 3388, 
    3397, 3407
  ) 
  AND category_id != 414

Query time 0.00042

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "32.26"
    },
    "table": {
      "table_name": "cscart_categories",
      "access_type": "range",
      "possible_keys": [
        "PRIMARY",
        "parent",
        "p_category_id"
      ],
      "key": "parent",
      "used_key_parts": [
        "parent_id"
      ],
      "key_length": "3",
      "rows_examined_per_scan": 60,
      "rows_produced_per_join": 60,
      "filtered": "100.00",
      "index_condition": "(`s2cart`.`cscart_categories`.`parent_id` in (2985,2992,2993,3005,3006,3007,3134,3151,3275,3276,3277,3278,3279,3280,3281,3288,3343,3374,3388,3397,3407))",
      "cost_info": {
        "read_cost": "26.26",
        "eval_cost": "6.00",
        "prefix_cost": "32.26",
        "data_read_per_join": "212K"
      },
      "used_columns": [
        "category_id",
        "parent_id"
      ],
      "attached_condition": "(`s2cart`.`cscart_categories`.`category_id` <> 414)"
    }
  }
}

Result

category_id parent_id
2994 2993
2995 2993
2996 2993
2997 2993
2998 2993
2999 2993
3000 2993
3001 2993
3002 2993
3003 2993
3282 3281
3283 3281
3284 3281
3285 3281
3286 3281
3287 3281
3375 3374
3376 3374
3377 3374
3378 3374
3379 3374
3380 3374
3381 3374
3382 3374
3383 3374
3384 3374
3385 3374
3386 3374
3387 3374
3389 3388
3390 3388
3391 3388
3392 3388
3393 3388
3394 3388
3395 3388
3396 3388
3398 3397
3399 3397
3400 3397
3401 3397
3404 3397
3405 3397
3406 3397
3408 3407
3409 3407
3410 3407
3411 3407
3412 3407