Based on the information in the article you linked to this should work:
update giveaways set winner="1"
where Id = (select Id from (select max(Id) as id from giveaways) as t)
Based on the information in the article you linked to this should work:
update giveaways set winner="1"
where Id = (select Id from (select max(Id) as id from giveaways) as t)