public function getColumns($table)
{
$table = $this->quoteIdentifier($table);
$stmt = $this->_pdo->query("DESCRIBE {$table}");
$columns = array();
while ($row = $stmt->fetch()) {
$columns[] = $row['Field'];
}
return $columns;
}