also it looks you are trying to do a db_select() here.