Compare to id in route rather than id in query