UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = '+l08xDP6bKIQzMtiAx25GaP5fRNrOH1S0jVHNv4QnpQ='
WHERE
key_id = '453db44bcab37c028657f48f130042889bc492649508f437bbcd3be41a6bcc2a'
AND (
token = '+l08xDP6bKIQzMtiAx25GaP5fRNrOH1S0jVHNv4QnpQ='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)