#2217 fix ambiguous table reference