If you have multiple relations with the same tables, you can set a new name to separate both usages.
see this reply: SQL error when loading multiple associations with the same name
If you have multiple relations with the same tables, you can set a new name to separate both usages.
see this reply: SQL error when loading multiple associations with the same name