UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'zTsIsHD0x/Vq2wLs5HMY42d6SUo7/XzxF17jaTqL7Lc='
WHERE
key_id = '9426fdfd0bae36a84a491b00439dd82acf439ddfe1da07cb6089751068bf6125'
AND (
token = 'zTsIsHD0x/Vq2wLs5HMY42d6SUo7/XzxF17jaTqL7Lc='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)