SQL syntax error in fwproc for build cmpkg