SELECT 
  category_id, 
  parent_id 
FROM 
  q_categories 
WHERE 
  parent_id IN(439, 443, 454, 460, 476, 479, 587)

Query time 0.00030

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "22.41"
    },
    "table": {
      "table_name": "q_categories",
      "access_type": "range",
      "possible_keys": [
        "parent"
      ],
      "key": "parent",
      "used_key_parts": [
        "parent_id"
      ],
      "key_length": "3",
      "rows_examined_per_scan": 11,
      "rows_produced_per_join": 11,
      "filtered": "100.00",
      "index_condition": "(`portal`.`q_categories`.`parent_id` in (439,443,454,460,476,479,587))",
      "cost_info": {
        "read_cost": "20.21",
        "eval_cost": "2.20",
        "prefix_cost": "22.41",
        "data_read_per_join": "29K"
      },
      "used_columns": [
        "category_id",
        "parent_id"
      ]
    }
  }
}

Result

category_id parent_id
440 439
442 439
444 443
455 454
461 460
462 460
463 460
464 460
477 476
478 476