SELECT 
  category_id, 
  parent_id 
FROM 
  ushop_categories 
WHERE 
  parent_id IN(
    558, 559, 560, 561, 562, 563, 564, 565, 
    566, 567, 568, 569, 570, 571, 572, 573, 
    574, 575, 576, 583, 577, 578, 579, 580, 
    582, 581
  ) 
  AND category_id != 264

Query time 0.00088

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "18.21"
    },
    "table": {
      "table_name": "ushop_categories",
      "access_type": "range",
      "possible_keys": [
        "PRIMARY",
        "parent",
        "p_category_id"
      ],
      "key": "parent",
      "used_key_parts": [
        "parent_id"
      ],
      "key_length": "3",
      "rows_examined_per_scan": 26,
      "rows_produced_per_join": 26,
      "filtered": "100.00",
      "index_condition": "(`marketplace`.`ushop_categories`.`parent_id` in (558,559,560,561,562,563,564,565,566,567,568,569,570,571,572,573,574,575,576,583,577,578,579,580,582,581))",
      "cost_info": {
        "read_cost": "15.61",
        "eval_cost": "2.60",
        "prefix_cost": "18.21",
        "data_read_per_join": "84K"
      },
      "used_columns": [
        "category_id",
        "parent_id"
      ],
      "attached_condition": "(`marketplace`.`ushop_categories`.`category_id` <> 264)"
    }
  }
}