UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = '9xbQqgUb0w1RXOND2uUQPlQ/MuhZv3UIEJ21lqQO5WA='
WHERE
key_id = '45efcb580efd59e2e70dda03cda68c33b94813e1013729be95628a2e87c1ac40'
AND (
token = '9xbQqgUb0w1RXOND2uUQPlQ/MuhZv3UIEJ21lqQO5WA='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)