|
@@ -812,6 +812,10 @@ class Base
|
|
|
*/
|
|
|
final function createSelectSQL($table)
|
|
|
{
|
|
|
+
|
|
|
+ if(stristr($table, '.') == false && stristr($table, '`') == false) {
|
|
|
+ $table = '`'. $table .'`';
|
|
|
+ }
|
|
|
$sql = sprintf($this->_query['SELECT'], ((trim($this->fields) != '') ? $this->fields : "*"), $table) . $this->join . $this->where . $this->groupBy . $this->orderBy . $this->limit;
|
|
|
$this->cleanData();
|
|
|
return $sql;
|