added ORDER BY id DESC to work.php