SELECT 
  category_id, 
  parent_id 
FROM 
  q_categories 
WHERE 
  parent_id IN(
    3, 10, 11, 138, 144, 245, 405, 432, 578, 
    589, 617
  )

Query time 0.00046

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "78.21"
    },
    "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": 48,
      "rows_produced_per_join": 48,
      "filtered": "100.00",
      "index_condition": "(`portal`.`q_categories`.`parent_id` in (3,10,11,138,144,245,405,432,578,589,617))",
      "cost_info": {
        "read_cost": "68.61",
        "eval_cost": "9.60",
        "prefix_cost": "78.21",
        "data_read_per_join": "126K"
      },
      "used_columns": [
        "category_id",
        "parent_id"
      ]
    }
  }
}

Result

category_id parent_id
4 3
5 3
39 3
134 10
135 10
136 10
137 10
130 11
131 11
132 11
133 11
523 11
139 138
140 138
141 138
142 138
143 138
145 144
100 144
146 144
366 144
400 144
458 144
549 144
585 144
246 245
247 245
577 578
590 589
591 589
592 589
593 589
594 589
616 589