While running this code:
note = noteDAO.queryForFirst(
noteDAO.queryBuilder().where().notIn("id",
noteStateDAO.queryBuilder().distinct().selectColumns("noteId")
.prepare())
.prepare());
... I've got following exception:
Problems executing Android query: SELECT * FROM `notes` WHERE `id` NOT IN
(MappedStatement: SELECT DISTINCT `noteId` FROM `note_states`)
Any ideas of what is MappedStatement in that SQL?