SELECT 
  category_id, 
  parent_id 
FROM 
  cscart_categories 
WHERE 
  parent_id IN(880, 887, 888, 950) 
  AND category_id != 265

Query time 0.00138

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": 57,
      "filtered": 100,
      "index_condition": "cscart_categories.parent_id in (880,887,888,950)",
      "attached_condition": "cscart_categories.category_id <> 265"
    }
  }
}

Result

category_id parent_id
881 880
882 880
883 880
884 880
885 880
886 880
889 888
890 888
891 888
892 888
893 888
894 888
895 888
896 888
897 888
898 888
899 888
900 888
901 888
902 888
903 888
904 888
905 888
906 888
907 888
908 888
909 888
910 888
922 888
923 888
924 888
925 888
926 888
927 888
928 888
929 888
930 888
931 888
932 888
933 888
934 888
935 888
936 888
937 888
938 888
939 888
940 888
941 888
942 888
943 888
944 888
945 888
946 888
947 888
948 888
949 888
1298 888
951 950