public function fetchSql($spec) { // build the statement from its component parts if needed if (is_array($spec)) { return $this->_select($spec); } else { return $spec; } }