Hi
Pls check have put Dot after serial number in database or not. if so please remove the dot(.)
$latest="select * from Products order by serial no. desc limit 0,1";
Pls use this
$latest="select * from Products order by serial no desc limit 0,1";
Let me check how it works