UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = 'LO6OSS4G+Ogg3PzpDZM+jTth1pOcl3ft1xSV+Va7Cc8=' 
WHERE 
  key_id = '69f70b9b73cf10ab6ef01e245d78a587944cab9b3a1bf76c7f8b9f3151df201c' 
  AND (
    token = 'LO6OSS4G+Ogg3PzpDZM+jTth1pOcl3ft1xSV+Va7Cc8=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00028