SELECT 
  category_id, 
  parent_id 
FROM 
  cscart_categories 
WHERE 
  parent_id IN(271, 272, 273, 274, 275, 276, 297)

Query time 0.00093

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "6.06"
    },
    "table": {
      "table_name": "cscart_categories",
      "access_type": "range",
      "possible_keys": [
        "parent"
      ],
      "key": "parent",
      "used_key_parts": [
        "parent_id"
      ],
      "key_length": "3",
      "rows_examined_per_scan": 29,
      "rows_produced_per_join": 29,
      "filtered": "100.00",
      "using_index": true,
      "cost_info": {
        "read_cost": "3.17",
        "eval_cost": "2.90",
        "prefix_cost": "6.07",
        "data_read_per_join": "75K"
      },
      "used_columns": [
        "category_id",
        "parent_id"
      ],
      "attached_condition": "(`aerokidsshop`.`cscart_categories`.`parent_id` in (271,272,273,274,275,276,297))"
    }
  }
}

Result

category_id parent_id
285 271
286 271
287 271
288 271
289 271
290 271
291 272
292 272
293 272
294 272
295 272
296 272
302 273
303 273
304 273
305 274
306 274
307 274
322 275
323 275
324 275
325 275
326 275
327 275
298 297
299 297
300 297
301 297