Calculate the harmonics in the power supply of $50\textrm{ Hz}$ using FFT
First of all, you should sample at rate greater than 2 times the highest digitized frequency, not equal to.

Second of all, do you have an anti-aliasing filter?