UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'vAPL07fofQ6zfmexsViOSL4l+aioAKQu7CFW8p/g5mY='
WHERE
key_id = '53ae086a2075b43269d65c59435b69af8c61170494ec470c7ab266bca1b7e794'
AND (
token = 'vAPL07fofQ6zfmexsViOSL4l+aioAKQu7CFW8p/g5mY='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)