SELECT 
  category_id, 
  parent_id 
FROM 
  cscart_categories 
WHERE 
  parent_id IN(
    10438, 10437, 9053, 6340, 6471, 9052
  )

Query time 0.00044

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "13.43"
    },
    "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": 31,
      "rows_produced_per_join": 31,
      "filtered": "100.00",
      "using_index": true,
      "cost_info": {
        "read_cost": "7.23",
        "eval_cost": "6.20",
        "prefix_cost": "13.43",
        "data_read_per_join": "183K"
      },
      "used_columns": [
        "category_id",
        "parent_id"
      ],
      "attached_condition": "(`webmarco`.`cscart_categories`.`parent_id` in (10438,10437,9053,6340,6471,9052))"
    }
  }
}

Result

category_id parent_id
6379 6340
6471 6340
6483 6340
6500 6340
6907 6340
6964 6340
7247 6340
6504 6471
9037 6471
9050 6471
9052 6471
9053 9052
9054 9052
9055 9052
9057 9052
9061 9052
9062 9052
9063 9052
9064 9052
9065 9052
10438 10437
10439 10437
10440 10437
10441 10437
10442 10437
10443 10437
10444 10437
10446 10437
10447 10437