SyntaxFix
Write A Post
Hire A Developer
Questions
Do you want the first and last name of the row with the largest id?
If so (and you were missing a FROM clause):
SELECT firstname, lastname, id FROM foo ORDER BY id DESC LIMIT 1;