new way to get if a post is a favourite with where clauses in the controller