/**
* Special method to query the table by its primary key.
*
* If primary key is compound, only the columns that
* belong to they key will be used for the query
*/
public function having_id_is($id) {
return (is_array($this->_get_id_column_name())) ?
$this->having($this->_get_compound_id_column_values($value)) :
$this->having($this->_get_id_column_name(), $id);
}