fix bugs of search group php and sql

#71 #72