Fixed bug caused by ambiguous SQL query