Host variable <str> is a function which is illegal in SQL statements. Explanation: The named variable is defined as a C function. Functions references are not supported in SQL statements. User Action: Use a different variable.