Fix bug in SQLQueryBuilder where not handling parameters

Fix bug in SQLQueryBuilder where not handling parameters