[Logs]: Fixed ambiguous column name in query