Fix SQL issue when using 'IS NOT NULL'
Merge pull request #3 from leeopencare/master

Fix SQL issue when using 'IS NOT NULL'