diff --git a/system/database/DB_query_builder.php b/system/database/DB_query_builder.php index c77648b381a..54510ec2e18 100644 --- a/system/database/DB_query_builder.php +++ b/system/database/DB_query_builder.php @@ -2057,7 +2057,7 @@ protected function _compile_select($select_override = FALSE) // Write the "FROM" portion of the query if (count($this->qb_from) > 0) { - $sql .= "\nFROM ".$this->from_tables(); + $sql .= "\nFROM ".$this->_from_tables(); } // Write the "JOIN" portion of the query