update base_query so that calling bind doesn't depend on the statement being prepared until execution time
fix bug in argument
this should fix it