fix sql issue with checker inbox.2