Corrected parameterized query usage of invalid params