error : exception caught : Database command not successfully prepared at line 151 in function f_global_sql of object f_global_sql.