public function load($mangaId) { $award = new Award(); $awardTable = $award->getTable(); $mangaData = $this->_db->fetchOnce("SELECT {$this->_table}.*, {$awardTable}.awardid\n FROM {$this->_table}, {$awardTable}\n WHERE `{$this->_table}`.`mangaid` = `{$awardTable}`.`resourceid`\n AND `{$this->_table}`.`mangaid` = '{$mangaId}'\n AND `{$awardTable}`.`resourcetype` = '" . self::RESOURCE_TYPE . "'"); if (!empty($mangaData)) { $this->setData($mangaData); return $this; } else { return FALSE; } }