fix leave group sql bug

1. fix leave group sql bug