UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = '0DJHyrjWCwAVYDxHJI+Z7/D79YVsJzYT+3EdSawGz4I='
WHERE
key_id = '461e7f9bd2a94901e9f6dadafee946255c0d85fff574188ce51f505eb9a7f2f4'
AND (
token = '0DJHyrjWCwAVYDxHJI+Z7/D79YVsJzYT+3EdSawGz4I='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)