fixed columns in attachments query
Merge pull request #22 from domoritz/master

#20, #22: Fixed duplicate time column in attachments query (contributed by domoritz).