diff --git a/sbin/ngcp-sync-constants b/sbin/ngcp-sync-constants index ef9e33a5..3783f30e 100755 --- a/sbin/ngcp-sync-constants +++ b/sbin/ngcp-sync-constants @@ -182,6 +182,9 @@ sub sync_user { SELECT count(User), Password = PASSWORD(?) as matched FROM user WHERE User = ? +GROUP by matched +ORDER by matched ASC +LIMIT 1 SQL my $sth_upd = $dbh->prepare(<