 FROM [<dbUser,varchar,dbo>].[subtext_Content] content
 	Left JOIN  subtext_EntryViewCount vc ON (content.[ID] = vc.EntryID AND vc.BlogId = @BlogId)
 WHERE 	content.BlogId = @BlogId 
-	AND content.[ID] <= @FirstId
+	AND content.DateAdded <= @FirstDate
 	AND PostType = @PostType
-ORDER BY content.[ID] DESC
+ORDER BY content.DateAdded DESC
  
 SELECT COUNT([ID]) AS TotalRecords
 FROM [<dbUser,varchar,dbo>].[subtext_Content] 

)
AS

DECLARE @FirstId int
DECLARE @StartRow int
DECLARE @StartRowIndex int


IF @ExcludeFeedbackStatusMask IS NULL
	SET @ExcludeFeedbackStatusMask = ~0

DECLARE @FirstDate datetime
DECLARE @StartRow int
DECLARE @StartRowIndex int

