UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'VHlOdPZqWpGFZ/wAkn9M2iBdIk0At7ZWobP493WtPSc='
WHERE
key_id = '2032a25d3cdf3c02ac39e0f92fe908d4e86072fad61ab3538f5ae50644632a94'
AND (
token = 'VHlOdPZqWpGFZ/wAkn9M2iBdIk0At7ZWobP493WtPSc='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)