SELECT 
  category_id, 
  parent_id 
FROM 
  cscart_categories 
WHERE 
  parent_id IN(991, 1021, 1032) 
  AND category_id != 265

Query time 0.00087

JSON explain

{
  "query_block": {
    "select_id": 1,
    "table": {
      "table_name": "cscart_categories",
      "access_type": "range",
      "possible_keys": ["PRIMARY", "parent", "p_category_id"],
      "key": "parent",
      "key_length": "3",
      "used_key_parts": ["parent_id"],
      "rows": 51,
      "filtered": 100,
      "index_condition": "cscart_categories.parent_id in (991,1021,1032)",
      "attached_condition": "cscart_categories.category_id <> 265"
    }
  }
}

Result

category_id parent_id
992 991
993 991
994 991
995 991
996 991
997 991
998 991
999 991
1000 991
1001 991
1002 991
1003 991
1004 991
1005 991
1006 991
1007 991
1008 991
1009 991
1010 991
1011 991
1012 991
1013 991
1014 991
1015 991
1016 991
1017 991
1018 991
1019 991
1020 991
1022 1021
1023 1021
1024 1021
1025 1021
1026 1021
1027 1021
1028 1021
1029 1021
1030 1021
1031 1021
1033 1032
1034 1032
1035 1032
1036 1032
1037 1032
1038 1032
1039 1032
1040 1032
1041 1032
1042 1032
1043 1032
1044 1032
1045 1032
1046 1032