Fixed select statement for maintenance problems in rooms.