SELECT 
  category_id, 
  parent_id 
FROM 
  categories 
WHERE 
  parent_id IN(
    6724, 6718, 6713, 6691, 6685, 24, 6655, 
    6668, 6692, 6683, 92, 93, 62, 6656, 6669, 
    6661, 6684, 6725, 6679, 25, 6719, 6726, 
    6657, 6670, 6680, 26, 6662, 6663, 6671, 
    6658, 6681, 27, 6672, 9936, 6659, 28, 
    6686, 6673, 6720, 6674, 94, 6723, 96, 
    97, 98, 2185
  )

Query time 0.00083

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "18.27"
    },
    "table": {
      "table_name": "categories",
      "access_type": "range",
      "possible_keys": [
        "parent"
      ],
      "key": "parent",
      "used_key_parts": [
        "parent_id"
      ],
      "key_length": "3",
      "rows_examined_per_scan": 88,
      "rows_produced_per_join": 88,
      "filtered": "100.00",
      "using_index": true,
      "cost_info": {
        "read_cost": "9.47",
        "eval_cost": "8.80",
        "prefix_cost": "18.27",
        "data_read_per_join": "230K"
      },
      "used_columns": [
        "category_id",
        "parent_id"
      ],
      "attached_condition": "(`goimagine`.`categories`.`parent_id` in (6724,6718,6713,6691,6685,24,6655,6668,6692,6683,92,93,62,6656,6669,6661,6684,6725,6679,25,6719,6726,6657,6670,6680,26,6662,6663,6671,6658,6681,27,6672,9936,6659,28,6686,6673,6720,6674,94,6723,96,97,98,2185))"
    }
  }
}

Result

category_id parent_id
6660 24
6661 24
6662 24
6663 24
6665 24
6666 24
6682 24
6683 25
6684 25
6685 25
6689 25
6690 25
6691 26
6692 26
6711 26
6712 26
6717 27
6718 27
6719 27
6720 27
6721 27
6722 27
6723 27
6713 28
6714 28
6715 28
6716 28
6655 62
6656 62
6657 62
6658 62
6659 62
6686 62
6668 92
6669 92
6670 92
6671 92
6672 92
6673 92
6674 92
6675 92
6676 92
6677 92
6678 93
6679 93
6680 93
6681 93
9936 93
6724 97
6725 97
6726 97