Fixes #3989 The bug was that the sql filter callback was not set (my bad)