Anda harus memindahkan operator WHERE ke atas daftar proyek tempat kolom RowNumber dibuat. Gunakan tabel turunan atau CTE:
SELECT *
FROM (
SELECT *, ROW_NUMBER() OVER (...) as RowNumber
FROM ...) As ...
WHERE RowNumber = ...
CTE yang setara adalah:
WITH cte AS (
SELECT *, ROW_NUMBER() OVER (...) as RowNumber
FROM ...)
SELECT * FROM cte
WHERE RowNumber = ...