DatabaseException has a number of scenarios where the error message is wrong. What is your database engine? I don’t recognize this syntax and I’ve seen DatabaseException use this error message when the SQL syntax is bad.
// Typed in the forum so not tested
var pv() as string
pv.add("first param")
pv.add.("second param")
db.executeSQl(sql, pv())
As @Tim_Parnell mentioned, I’ve noticed that the MySQL plugin returns the wrong error when the number of parameters doesn’t match the prepared statement
Sometimes to help debug the bad error messages, I run the query in a database management tool. Of course, you’ll need to manually fill in some values for the placeholders. That sometimes gives me the actual error.