fix error notice due to deprecated use of DbTable->select()