#20 fix

This is caused by a view created with phpMyAdmin before.
Merge pull request #21 from Atorich/patch-1

#20 fix