diff --git a/src/Table.php b/src/Table.php index f420982..933fa15 100644 --- a/src/Table.php +++ b/src/Table.php @@ -143,7 +143,7 @@ public function prepareColumnList(bool $asString = true) : array|string { $columnListString = []; foreach ($columnList as $column) { - $columnListString[] = '`' . $this->getName() . '`.`' . $column['field'] . '` as `' . $this->getName() . '.' . $column['field'] . '`'; + $columnListString[] = '`' . $this->getName() . '`.`' . $column['Field'] . '` as `' . $this->getName() . '.' . $column['Field'] . '`'; } if ($asString) {