I have a table and am trying to get the most recent row using this code:
$sql="SELECT column FROM table ORDER BY DESC LIMIT 1";
ORDER BY DESC LIMIT 1
ORDER BY what DESC? You have to provide a column name where which you want to order by. Could be an Auto increment column, primary key or even the timestamp etc
As it currently stands your query has invalid syntax and will not return anything other than an error.