Looking For a More Efficient/Elegant Way To Write a MySQL Query
Try something like this:

$sql = "SELECT * FROM user ORDER BY timestamp DESC LIMIT 1";
$result = $mysqli-&gt;query($sql);
$row_lastone = mysqli_fetch_array($result);

$date = date("M Y", strtotime($row_lastone['timestamp']));

echo "&lt;h1&gt;".$date."&lt;/h1&gt;";