UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = '/kBjMramVkzZWJ1Zj6wPBkHBXC9R5frDT/k/vwe7oIo=' 
WHERE 
  key_id = 'f641ee7749b2feb6869e861ab2e4f9da7b24b1e8d698e7292252439a50ba1cdb' 
  AND (
    token = '/kBjMramVkzZWJ1Zj6wPBkHBXC9R5frDT/k/vwe7oIo=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00021