Physical and unphysical solutions of the random-phase approximation equation