Postgres is unhappy about available_types_for_gel_image statement
Original statement has ORDER BY in it which Postgres considers as a requirement then for group by as well if you use it with the count. Fix incoming
Original statement has ORDER BY in it which Postgres considers as a requirement then for group by as well if you use it with the count. Fix incoming