Since all you have told us is "it aint (SIC) working" and you haven't even
bothered to tell us what you are actually seeing, it could be just about
There is no such table as user
there is no such field as lastlogin
you have an uneven number of quotes
the & is not a valid symbol in whatever language you are working in
the mysql server is not running
you entered the string in Notepad instead of submitting it to mysql
and many many more.
Care to tell us a bit more about what you are seeing?