fix not unique table/alias when any association is in outer_joins and joins or references