added correct column select to foreign_key table