public function fetchRow($id) { $sql = "\n SELECT\n " . $this->config->selectFields() . "\n FROM\n " . $this->config->tableName() . "\n " . $this->joinQuery() . "\n WHERE\n " . $this->config->tableName() . ".`" . $this->config->idField() . "` = :id\n "; $params = array('id' => $id); $result = ipDb()->fetchRow($sql, $params); return $result; }