Fixing deleting values with foreign keys

The sql query needs to use a using command for elements that are not in
the current table? Maybe I misunderstood this. Either way, it's still
erroring.