public function __invoke($matches)
{
$table = $matches[1];
$column = $matches[2];
$alias = $matches[3];
if ($alias != "_{$table}_{$column}") {
return $matches[0];
}
if ($table != $this->prev_table) {
$first = !$this->prev_table;
$this->prev_table = $table;
$result = "{$table}.*";
return $first ? $result : ", {$result}";
}
return "";
}