UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = 'Zl7g82PEvJ4rlYfnPaL1/4Zjl89DojqtereLEYXb0g8=' 
WHERE 
  key_id = '1ea6cdf46e51d5b6bdc77526797c3b725df39dc128643ceffb1d523cbc56ec43' 
  AND (
    token = 'Zl7g82PEvJ4rlYfnPaL1/4Zjl89DojqtereLEYXb0g8=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00020