MORE
----
Calling the function from the command line also failed.
changing the prefix to make the variable named 'v_usr_id'
gives the same error:
--------------------
SQL error:
ERROR: syntax error at or near "v_usr_id"
but 'dv_usr_id' works? What the heck is going on?