Error

Unable to execute query.

DECLARE @PassphraseEnteredByUser nvarchar(128);
					SET @PassphraseEnteredByUser 
   					 = 'I paint therefore 1 am'; 
	
	
					WITH OwnerData AS ( 
						
						SELECT DISTINCT
						DI.DigigraphieImageName, 
						DI.DigigraphieImageId, 
						DI.OwnerId, 
						DI.CreatedOn, 
						(DecryptByPassphrase(@PassphraseEnteredByUser, O.OwnerName_enc, 1, CONVERT (varbinary, O.OwnerId) )) AS OwnerName,
						(DecryptByPassphrase(@PassphraseEnteredByUser, O.PsuedoName, 1, CONVERT (varbinary, O.OwnerId) )) AS PsuedoName
						
						FROM DigigraphieImage DI
						LEFT JOIN Owner O ON O.OwnerId = DI.OwnerId
						LEFT JOIN DigigraphieSeries DS ON DS.DigigraphieImageId = DI.DigigraphieImageId
						LEFT JOIN OwnerLab OL ON OL.OwnerId = O.OwnerId
						LEFT JOIN OwnerEditor OE ON OE.OwnerId = O.OwnerId
						LEFT JOIN UserProfile USRP ON USRP.UserId = O.UserId
						WHERE DI.IsDeleted != '1' AND O.IsDeleted !='1' AND USRP.UserStatusId != 5 AND DI.ShowOnSite = 1  ),
						
						OrderedRows AS (
						SELECT * ,
						row_number() OVER (ORDER BY CreatedOn DESC) as RowNumber
						FROM OwnerData
						)		

						SELECT * FROM OrderedRows ORDER BY OrderedRows.RowNumber ASC