UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = '+8HUobYOs7amzQ3hIVxXdw+rck+EeQ68cS4Xof6spuI='
WHERE
key_id = 'b95dd28e663fac10d0984c87c8672f1b37c2ce49599037cbfa67e41f74f33f76'
AND (
token = '+8HUobYOs7amzQ3hIVxXdw+rck+EeQ68cS4Xof6spuI='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)