Fix hint filter query so that it only looks at hints assigned to a problem.