public function whereType($column, $type) { return $this->where($column, array('$type' => $type), 'first'); }