There are two expressions regarding relativistic mass of photon; namely relativistic approach:
$$m = \frac {m_0} {({1 - \frac {v^2 } {c^2 }) } ^\frac {1 } {2} }. $$
And, energy-mass equivalence formula:
$$ E = m {c}^2. $$
There common uses in physics books:
First formula is used to prove that rest mass of photon is zero.
Second formula is used to find out what is called kinetic mass of photon in motion.
MY QUESTION: first formula suggests that photon must have infinite mass in motion, and second gives finite mass (kinetic), why is this disperacy?