UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'E3AS/PTl9wmFvqMX7FBMedSJLH33pMJ5qy3QsYpyzLY='
WHERE
key_id = '5e825f576f578dc4b70c40e1ff2bd900839717df3eecd8995f365f981c620462'
AND (
token = 'E3AS/PTl9wmFvqMX7FBMedSJLH33pMJ5qy3QsYpyzLY='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)