SELECT 
  category_id, 
  parent_id 
FROM 
  cscart_categories 
WHERE 
  parent_id IN(
    596, 593, 762, 972, 981, 708, 958, 1145, 
    710, 986, 642, 1158, 722, 656, 793, 1076, 
    615, 490, 689
  )

Query time 0.00068

JSON explain

{
  "query_block": {
    "select_id": 1,
    "nested_loop": [
      {
        "table": {
          "table_name": "cscart_categories",
          "access_type": "range",
          "possible_keys": ["parent"],
          "key": "parent",
          "key_length": "3",
          "used_key_parts": ["parent_id"],
          "rows": 22,
          "filtered": 100,
          "index_condition": "cscart_categories.parent_id in (596,593,762,972,981,708,958,1145,710,986,642,1158,722,656,793,1076,615,490,689)"
        }
      }
    ]
  }
}

Result

category_id parent_id
762 596
597 596
593 596
981 708
642 793
1076 793