UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'SruqHsZbYxJb8yKTz/QzwmK7UhFCymQL/KbmLy+EzYQ='
WHERE
key_id = '7ab25c356726001e366589cfcceefb549eba262a508126d0270f5a247148334c'
AND (
token = 'SruqHsZbYxJb8yKTz/QzwmK7UhFCymQL/KbmLy+EzYQ='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)