Revert "bind_param fixes"

This reverts commit 178bc079ba4e022d61e50bca849f302106bafc54.