UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = 'fzFtEX4W706YrrA7p7ymjee+xktdZetadCYKEsOPlLs=' 
WHERE 
  key_id = '2ea9720cc21d6f627586ebeb04c3373aeb4edb992b229b25eb6dd1724667ad41' 
  AND (
    token = 'fzFtEX4W706YrrA7p7ymjee+xktdZetadCYKEsOPlLs=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00035