@@ -169,7 +169,7 @@ discard block |
||
169 | 169 | |
170 | 170 | $where = ($this->_autoLoadField ? " WHERE {$this->_autoLoadField}={$this->_autoLoadValue}" : ''); |
171 | 171 | $cmd = $db->createCommand( |
172 | - "SELECT {$this->_keyField} as keyField, {$this->_valueField} as valueField FROM {$this->_tableName}{$where}" |
|
172 | + "select {$this->_keyField} as keyField, {$this->_valueField} as valueField FROM {$this->_tableName}{$where}" |
|
173 | 173 | ); |
174 | 174 | $results = $cmd->query(); |
175 | 175 | |
@@ -289,7 +289,7 @@ discard block |
||
289 | 289 | } |
290 | 290 | $db = $this->getDbConnection(); |
291 | 291 | $cmd = $db->createCommand( |
292 | - "SELECT {$this->_valueField} as valueField FROM {$this->_tableName} WHERE {$this->_keyField}=:key LIMIT 1" |
|
292 | + "select {$this->_valueField} as valueField FROM {$this->_tableName} WHERE {$this->_keyField}=:key LIMIT 1" |
|
293 | 293 | ); |
294 | 294 | $cmd->bindParameter(":key", $key, PDO::PARAM_STR); |
295 | 295 | $results = $cmd->queryRow(); |