Prior ties to defence lawyer no grounds for bias, says magistrate