public function table($table) { if (is_array($table)) { $f = ''; foreach ($table as $key) { $f .= $this->prefix . $key . ', '; } $this->from = rtrim($f, ', '); } else { $this->from = $this->prefix . $table; } return $this; }