avoid invalid sql statement when where is empty
Merge pull request #37 from manumaticx/master

avoid invalid sql statement when where is empty