fix for SQL with no params