categories = Entity.joins(:language, :category).
select("coalesce('entities.short_descr', 'categories.short_descr')").
where('languages.code = ?', 'en')
render json: {status: 'ok', categories: categories}
{"status":"ok","categories":[{"coalesce":"entities.short_descr","id":null}]}