UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = 'J7ID6y/Pox1DOqFBbdIpl9FR1U/QqTEaBx6VjS5izh0=' 
WHERE 
  key_id = 'f5e2cb2b1ccc24d596815b124e8d2cbc916ac55920152a2b8efbf084f2076324' 
  AND (
    token = 'J7ID6y/Pox1DOqFBbdIpl9FR1U/QqTEaBx6VjS5izh0=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00031