SELECT 
  category_id, 
  parent_id 
FROM 
  cscart_categories 
WHERE 
  parent_id IN(1057, 1037, 1132, 1051, 1044, 271) 
  AND category_id != 264

Query time 0.00061

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "9.67"
    },
    "table": {
      "table_name": "cscart_categories",
      "access_type": "range",
      "possible_keys": [
        "PRIMARY",
        "parent",
        "p_category_id"
      ],
      "key": "parent",
      "used_key_parts": [
        "parent_id",
        "category_id"
      ],
      "key_length": "6",
      "rows_examined_per_scan": 47,
      "rows_produced_per_join": 47,
      "filtered": "100.00",
      "using_index": true,
      "cost_info": {
        "read_cost": "4.97",
        "eval_cost": "4.70",
        "prefix_cost": "9.67",
        "data_read_per_join": "122K"
      },
      "used_columns": [
        "category_id",
        "parent_id"
      ],
      "attached_condition": "((`aomnia_com`.`cscart_categories`.`parent_id` in (1057,1037,1132,1051,1044,271)) and (`aomnia_com`.`cscart_categories`.`category_id` <> 264))"
    }
  }
}

Result

category_id parent_id
304 271
350 271
351 271
353 271
356 271
1026 271
1027 271
1028 271
1029 271
1030 271
1031 271
1032 271
1033 271
1034 271
1035 271
1036 271
1038 1037
1039 1037
1040 1037
1041 1037
1042 1037
1043 1037
1045 1044
1046 1044
1047 1044
1048 1044
1049 1044
1050 1044
1052 1051
1053 1051
1054 1051
1055 1051
1056 1051
1058 1057
1059 1057
1060 1057
1061 1057
1062 1057
1063 1057
1064 1057