UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'ub85aQhSl+J1et3tl5pQ7r1e5ZUx55WSWS5bKko2E3M='
WHERE
key_id = '7fd2af3ea01a79734d38ab051928643b939b227c2fcefe305d02545c15642d60'
AND (
token = 'ub85aQhSl+J1et3tl5pQ7r1e5ZUx55WSWS5bKko2E3M='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)