pawel.barszcz
11/20/2016, 9:19 PM.select( /* condition */)
should return only oneor zero rows, so it’s good to act as if there could be many of them. So I suggest to use .first()
if you are sure that there will be at least one result (so exception will be thrown for empty result set) or .firstOrNull()
if there can be no results.