public function primary($table) { $fields = $this->list_fields($table); return is_array($fields) ? current($fields) : FALSE; }