[Bugfix - MED] Fixed a bug which allowed users to have own votes on posts they own

Keeping it short, this fixes a bug that allows a user to claim a post that has already been voted by the logged in user.

I would also run the delete statement for all users in the next db version.

As a side note, the coding style guidelines are missing SQL conventions.