UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = '+IAKMMfFWnu6dLMegYs/IqTInWxMp/Cbju+I73PHwBo='
WHERE
key_id = '32cdaff938139e828366d7da95f8f5cb1a308654e213600201e16cda8cf09ff7'
AND (
token = '+IAKMMfFWnu6dLMegYs/IqTInWxMp/Cbju+I73PHwBo='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)