havebook now has a query with joining of three tables