public function get($id, $hidden_fields = false) { $sql = "SELECT * FROM " . $this->getTable() . " WHERE " . $this->getKey() . "=?"; $row = $this->conn->fetchRow($sql, array($id), $hidden_fields); if ($row) { $this->load($row); } return $row; }