I reinstalled the previous version of my app, with the previous SQLcipher. It was working with no problem.
The reason I upgraded SQLCipher was because of the issues with Android 6&7, which are fixed now with the new version. The problem is that I also increased the target SDK version to 26, so I think I can't revert back to the previous version?
Arg... I didn't even realize the bug until several people reported it. My limit and offset numbers are quite high, so I didn't scroll the results that much to see the bug..
I think I'll have to un-publish my app until the problem is solved.