UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'xcrVTbxoKZ1/pjhGZClwNcc+Iyc+x0Xs4FBkIg2wzgg='
WHERE
key_id = '6a4731be6d7ab6c4c6a90399d353fbd0d5429a4e778228a61adf7b1b3581c259'
AND (
token = 'xcrVTbxoKZ1/pjhGZClwNcc+Iyc+x0Xs4FBkIg2wzgg='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)