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