Using `count` in CTE has type `never`
I got the following tables:
I'm trying to write a
The problem is that now, if I try to use the results of that CTE,
users: id, ...followers: followingId, followerIdI'm trying to write a
with common table expression to reuse in other queries:The problem is that now, if I try to use the results of that CTE,
sq.following and sq.followers are not valid columns: