fix #251 problem with table relationships
Merge pull request #252 from massiveart-webservices/bugfix/251

fix #251 problem with table relationships