Adds Badge#last_granted_from query