[root@admod /home/divinity/heavymetal/snippets]# php mut.php --db-run-all EMERGENCY: Exception (SQLException) - Could not execute query [Native Error: Unknown column 'preload' in 'where clause'] [User Info: SELECT `id`, `name`, `site_id`, `title`, `value`, `description`, `type`, UNIX_TIMESTAMP(`updated`) AS `updated`, `meta`, `params` FROM vars WHERE preload = 1 or meta = 'alias' AND (`site_id` = 0) ORDER BY meta = 'alias', name = 'crypt_key' Desc, name Asc ] ------------------------------------------------------------------------------- Source File: /usr/home/divinity/heavymetal/lib/3rdparty/creole/drivers/mysqli/MySQLiConnection.php (line: 208) 00201: { 00202: self::$sql[] = $sql; 00203: $this->lastQuery =& self::$sql[count(self::$sql)-1]; /* reference to the last executed sql */ 00204: //$this->lastQuery = $sql; 00205: 00206: $result = @mysqli_query($this->dblink, $sql); 00207: if (!$result) { >00208: throw new SQLException('Could not execute query', mysqli_error($this->dblink), $sql); 00209: } 00210: return new MySQLiResultSet($this, $result, $fetchmode); 00211: } 00212: 00213: function executeMultiQuery($sql, $fetchmode = null) 00214: { 00215: self::$sql[] = $sql; 00216: $this->lastQuery =& self::$sql[count(self::$sql)-1]; /* reference to the last executed sql */ ------------------------------------------------------------------------------- Stack Trace: #0 /usr/home/divinity/heavymetal/lib/3rdparty/creole/common/PreparedStatementCommon.php(306): MySQLiConnection->executeQuery('SELECT `id`, `n...', NULL) #1 /usr/home/divinity/heavymetal/lib/3rdparty/creole/common/ConnectionEx.php(17): PreparedStatementCommon->executeQuery(Array) #2 /usr/home/divinity/heavymetal/lib/rudolf/record.php(1825): ConnectionEx->prepareEx('SELECT `id`, `n...', Array) #3 /usr/home/divinity/heavymetal/lib/rudolf/record.php(3021): rudolf_record->query() #4 /usr/home/divinity/heavymetal/lib/masdb/vars.php(173): rudolf_record->rewind() #5 /usr/home/divinity/heavymetal/lib/masdb/vars.php(110): vars::_preload_vars() #6 /usr/home/divinity/heavymetal/lib/masdb/vars.php(624): vars::preload_vars() #7 /usr/home/divinity/heavymetal/lib/functions.php(167): include_once('/usr/home/divin...') #8 [internal function]: __autoload('vars') #9 /usr/home/divinity/heavymetal/lib/rudolf/metadata.php(207): ReflectionClass->__construct('vars') #10 /usr/home/divinity/heavymetal/lib/rudolf/record.php(682): rudolf_metadata::extract_reflection_data('vars') #11 /usr/home/divinity/heavymetal/lib/rudolf/record.php(453): rudolf_record::scan_columns(true, 'rudolf_record::...') #12 /usr/home/divinity/heavymetal/snippets/common.php(19): rudolf_record::init_db() #13 /usr/home/divinity/heavymetal/snippets/mut.php(4): require_once('/usr/home/divin...') #14 {main} ------------------------------------------------------------------------------- 2011-05-27 19:25:41 +0000: core(18511) Emergency: file:1306524341/no_log