On quasi-orthogonal polynomials