For <particles> of light, photons, certain care needs to be taken about what p,m,v,E mean. If p=mc, then m is the so-called 'relativistic mass' which has no meaning for a photon, but only for a massive particle.
The universal formula which is to be used is
[tex]E^2 = \vec{p}^2 c^2 + m^2 c^4[/tex]
where m is the rest/invariant mass which is 0 for a photon.