Generated SQL for the model did not work due a bug in the relational mapper.