$ 0 0 Fixed bug. In cases where a column had multiple foreign keys, only one foreign key was used. Thanks to Christopher Stamm.