Bad $rs in GetUpdateSQL. Connection or SQL invalid. Try using $connection->debug=true;

Bad $rs in GetUpdateSQL. Connection or SQL invalid. Try using $connection->debug=true;