[sql] Query error with ambiguous column name in SQL