Court rejects bail to Katta, permits to undergo treatment