I have two subsequent mysqli statements, and the second returns:
Fatal error: Call to a member function bind_param() on a non-object in ...
I think your $stmt variable is null when you call bind_param over it. maybe your $_POST['vote'] is empty? you can check it before you bind the param on the command