Former Selangor menteri besar Dr Mohd Khir Toyo has apologised to current state exco member Ronnie Liu at the Kuala Lumpur High Court over the former's defamatory statement that Liu had prevented local authorities from taking action on an alleged vice-den in Puchong.