How to populate two columns on one table from two different tables

I would guess this might be contributing to your issue.