Added scalar param value validation to parameterized query