When downvoting an issue that has never been voted for before, you get the error:
APPLICATION ERROR #401
Database query failed. Error received from database was #1048: Column 'upvote' cannot be null for the query: UPDATE mantis_bug_votes_table
SET upvote = ?, downvote = ?
WHERE bug_id = ?