Postgresql – column "name" does not exist
I am having issue with ALIAS variable "distance" in my PSQL query. (*please ignore that I am using voutecount as distance) SELECT rentalid, createdDate, votecount AS distance FROM rental WHERE longitude=? AND latitude=? HAVING distance < 25 ORDER BY distance…