When I am deriving de Broglie wavelength for a relativistic particle using $E^2=m^2c^4+p^2c^2$ and equating with $E=\frac{hc}{\lambda}$, and then putting $p=kmv$, $k$ being relativistic factor, I am getting $\lambda =\frac{h}{kmc}$ instead of $\frac{h}{kmv}$.
Is there any mistake that i am doing with equating those 2 energy equations ? Or something else ?