GET FAMILY ID FROM PID: Error performing SQLquery: