When selecting aggregates with custom SQL the error is raised. It worked perfectly in 0.1.4 but broke in 0.1.5