Add sql condition for loyalty
Merge branch 'master' of https://github.com/globeestate11/estate