If an sql statement has a comment it can be prepared wrongly, without passing parameters in it. I have a unit test for reproducing the issue: https://gist.github.com/anonymous/ee94694a0d3c617cc236bc479fdd399f