Fixed query to retrieve all tags related to a post