UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = 'WKq+aqfrNF5U/z8lDtx11Qo+iK/6iUch+Zafotqjb0o=' 
WHERE 
  key_id = 'f26a43d1c8cc5f0a4d415ed4434c057b398bf43b866b691aaeeba4c44500378a' 
  AND (
    token = 'WKq+aqfrNF5U/z8lDtx11Qo+iK/6iUch+Zafotqjb0o=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00020