Fixed SQL statement syntax error in 'fwproc' when looking for primary
ECA