fixes #177: select ignoring column with the same name from different
tables