SELECT 
  category_id, 
  parent_id 
FROM 
  categories 
WHERE 
  parent_id IN(
    157, 170, 131, 147, 154, 13, 138, 171, 
    155, 132, 168, 16, 139, 148, 165, 156, 
    133, 172, 17, 149, 169, 18, 173, 134, 
    150, 137, 135, 81, 19, 136, 143, 175, 
    15, 144, 82, 11918, 326, 11913
  )

Query time 0.00105

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "15.87"
    },
    "table": {
      "table_name": "categories",
      "access_type": "range",
      "possible_keys": [
        "parent"
      ],
      "key": "parent",
      "used_key_parts": [
        "parent_id"
      ],
      "key_length": "3",
      "rows_examined_per_scan": 76,
      "rows_produced_per_join": 76,
      "filtered": "100.00",
      "using_index": true,
      "cost_info": {
        "read_cost": "8.27",
        "eval_cost": "7.60",
        "prefix_cost": "15.87",
        "data_read_per_join": "198K"
      },
      "used_columns": [
        "category_id",
        "parent_id"
      ],
      "attached_condition": "(`goimagine`.`categories`.`parent_id` in (157,170,131,147,154,13,138,171,155,132,168,16,139,148,165,156,133,172,17,149,169,18,173,134,150,137,135,81,19,136,143,175,15,144,82,11918,326,11913))"
    }
  }
}

Result

category_id parent_id
131 13
132 13
133 13
134 13
135 13
136 13
137 13
167 15
168 15
169 15
138 16
139 16
141 16
142 16
143 16
144 16
145 16
146 16
147 17
148 17
149 17
150 17
151 17
152 17
153 17
11913 17
11914 17
170 18
171 18
172 18
173 18
174 18
175 18
176 18
11918 18
157 19
158 19
159 19
160 19
161 19
162 19
177 19
154 81
155 81
156 81