use model table in column conditions