UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = '68FUfruh0BM8holh5IoFTaFT2wewlJh0bFOuMrSHym0=' 
WHERE 
  key_id = '70553671a9f410ee8ce7749ae9d1a333af0d1976e9cf24d64a193dbc589eb448' 
  AND (
    token = '68FUfruh0BM8holh5IoFTaFT2wewlJh0bFOuMrSHym0=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00029