A bug in an SQL query of CopyAdd

fixed