SELECT 
  category_id, 
  parent_id 
FROM 
  cscart_categories 
WHERE 
  parent_id IN(
    5495, 5506, 7093, 5511, 5519, 5577, 8784, 
    8823, 7217, 5847, 8817, 7022
  )

Query time 0.00051

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "36.67"
    },
    "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": 89,
      "rows_produced_per_join": 89,
      "filtered": "100.00",
      "using_index": true,
      "cost_info": {
        "read_cost": "18.87",
        "eval_cost": "17.80",
        "prefix_cost": "36.67",
        "data_read_per_join": "527K"
      },
      "used_columns": [
        "category_id",
        "parent_id"
      ],
      "attached_condition": "(`webmarco`.`cscart_categories`.`parent_id` in (5495,5506,7093,5511,5519,5577,8784,8823,7217,5847,8817,7022))"
    }
  }
}

Result

category_id parent_id
5506 5495
5577 5495
5630 5495
5682 5495
5730 5495
5770 5495
5780 5495
5847 5495
5511 5506
5672 5506
8957 5506
8958 5506
8961 5506
8962 5506
8967 5506
8968 5506
8969 5506
8970 5506
8971 5506
5519 5511
8972 5511
5525 5519
5612 5519
5639 5519
5647 5519
5652 5519
5661 5519
8981 5519
5584 5577
5669 5577
7084 5577
8784 5577
8849 5577
8945 5577
5590 5847
5857 5847
6134 5847
6267 5847
6279 5847
6292 5847
6311 5847
6325 5847
6409 5847
6429 5847
6527 5847
6550 5847
6638 5847
7022 5847
7093 7022
7503 7022
7534 7022
7128 7093
7156 7093
7175 7093
7186 7093
7204 7093
7217 7093
7238 7093
7374 7093
7385 7093
7561 7093
7572 7093
7587 7093
7593 7093
8790 8784
8791 8784
8793 8784
8796 8784
8797 8784
8798 8784
8814 8784
8815 8784
8816 8784
8817 8784
8831 8784
8832 8784
8843 8784
8844 8784
8845 8784
8846 8784
8847 8784
8848 8784
8818 8817
8820 8817
8822 8817
8823 8817
8825 8817