SELECT 
  category_id, 
  parent_id 
FROM 
  cscart_categories 
WHERE 
  parent_id IN(
    4808, 4431, 4525, 4334, 4257, 4551, 4299, 
    4003, 4254, 5264, 4746, 5597, 5256, 
    4418, 5270, 4693, 4903, 5968, 4933
  )

Query time 0.00067

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "58.31"
    },
    "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": 143,
      "rows_produced_per_join": 143,
      "filtered": "100.00",
      "using_index": true,
      "cost_info": {
        "read_cost": "29.71",
        "eval_cost": "28.60",
        "prefix_cost": "58.31",
        "data_read_per_join": "847K"
      },
      "used_columns": [
        "category_id",
        "parent_id"
      ],
      "attached_condition": "(`webmarco`.`cscart_categories`.`parent_id` in (4808,4431,4525,4334,4257,4551,4299,4003,4254,5264,4746,5597,5256,4418,5270,4693,4903,5968,4933))"
    }
  }
}

Result

category_id parent_id
4004 4003
4257 4003
4275 4003
4288 4003
4289 4003
4304 4003
4334 4003
4365 4003
4422 4003
4423 4003
4458 4003
4468 4003
4472 4003
4504 4003
4525 4003
4544 4003
4865 4003
4888 4003
5214 4003
9284 4003
4268 4254
4286 4254
4431 4254
4475 4254
4510 4254
4561 4254
4587 4254
4765 4254
4808 4254
4859 4254
4915 4254
4974 4254
5022 4254
5068 4254
5110 4254
5272 4254
5307 4254
5324 4254
6022 4254
6164 4254
6233 4254
7017 4254
7045 4254
7067 4254
7103 4254
4308 4257
4331 4257
4351 4257
4386 4257
4418 4257
4442 4257
4480 4257
4833 4257
4854 4257
4873 4257
4895 4257
4920 4257
4943 4257
4373 4334
4754 4334
4773 4334
4786 4334
4807 4334
4820 4334
4834 4334
4848 4334
4866 4334
4884 4334
4903 4334
4933 4334
4987 4334
10182 4334
10183 4334
4653 4431
4687 4431
4812 4431
4844 4431
4883 4431
5861 4431
5893 4431
5922 4431
5951 4431
5968 4431
5998 4431
4399 4525
4551 4525
4638 4525
4667 4525
4693 4525
4832 4525
4857 4525
4904 4525
5016 4525
4588 4551
4617 4551
4648 4551
4746 4551
4774 4551
4795 4551
4813 4551
4842 4551
4864 4551
4875 4551
9639 4551
9825 4551
10177 4551
10178 4551
10179 4551
10180 4551
10181 4551
4717 4693
4791 4693
5264 4693
5359 4808
5397 4808
5553 4808
5597 4808
5088 4903
5173 4903
5197 4903
5215 4933
5231 4933
5244 4933
5256 4933
5270 4933
5282 4933
4299 5264
5302 5264
5318 5264
5342 5264
5358 5264
5378 5264
5400 5264
5418 5264
5443 5264
9018 5264