private function sql($m) { $a = new DRW($m); $s = ''; $c = ''; $tb = ''; while ($y = $a->shift()) { $k = $y[1]; if ($k === true) { $this->table = $k; } if (!isStr($k)) { continue; } $j = new STR($k); if ($j->bind_pos('or', '>', '<', '=', ',')) { if (!$s) { $s = $k; } else { $c = ' WHERE ' . $k; } } else { if ($k !== SQL_BIND_INHERIT && !$tb) { $tb = $k; } else { $this->order = $k; } } } if (!$c) { $c = $this->bind; } return array(!$tb ? $this->table : $tb, $s, $c); }