Error code 1329 in store Procedure
===

I  got errorcode in store Procedure which is related to MySql DataBase


CREATE   
    PROCEDURE `iiswebframework`.`GetProductWiseFeatures`()   
    BEGIN
	DECLARE queryStr VARCHAR(4000) ;
	DECLARE rowCount int ;
	DECLARE columnName VARCHAR(50);
	DECLARE Fname VARCHAR(50);
	DECLARE Pname VARCHAR(50);
	DECLARE IsActive BIT ;

	DECLARE colColl CURSOR FOR 
	SELECT p.Name FROM package p;

	

	DECLARE result CURSOR FOR 
	SELECT f.Name,
		(CASE 
			WHEN pf.PackageID = p.ID 
			AND pf.FeatureID = f.ID 
			THEN 1
			ELSE 0
		END) AS 'IsActive',
		p.Name as 'PackageName' 
	FROM Features f left JOIN PackgaeFeature pf ON f.ID = pf.FeatureID 
	left JOIN Package p ON p.ID =pf.PackageID 
	ORDER BY p.Name ASC ;

	

	SET queryStr =  '
		CREATE TABLE temp
		(			FeatureName Varchar(50) , 	 ';

	OPEN colColl;
	getcol: LOOP
	FETCH  colColl into columnName ;

	SET queryStr = queryStr + columnName + ' bit , ';

	/*Set rowCount = rowCount - 1 ;
	End While;*/
	END LOOP getcol;

	SET queryStr = SUBSTRING ( queryStr ,0, length(queryStr) );

	SET queryStr = queryStr + 	'	)	' ;

	EXECUTE queryStr ;

	CLOSE colColl;

	/*print 'After inserting features'*/

	Insert INTO temp(FeatureName)
	SELECT f.Name FROM Features f ;

	SET queryStr	= ' ';

	open result;
	Select FOUND_ROWS() into rowCount;

	While rowCount>0 do
		FETCH result into Fname ,IsActive,Pname;
		SET rowCount = rowCount - 1 ;
		/*PRINT ' fname =  ' + @Fname + ' panme = ' +  @Pname*/

		SET queryStr = queryStr + ' 
		Update temp
		SET ' + Pname + ' = 1
		where FeatureName = ''' +Fname 
		+ ''' ' ;
		
		EXECUTE queryStr;

	End While;

	CLOSE result;

	Select * from temp ;
	Drop TABLE temp ;

    END$$

DELIMITER ;