Having bind params [rt.cpan.org #100972]

Fixes https://rt.cpan.org/Public/Bug/Display.html?id=100972
Added some testing as well.
Feedback appreciated.

Best regards.