Forgot to add special whereCondition fix for postgres as well.