diff --git a/query.php b/query.php index 6f1e497..15529fd 100644 --- a/query.php +++ b/query.php @@ -2791,6 +2791,11 @@ public function get_results( $cols = array(), $where_cols = array(), $limit = 25 return null; } + // Get all columns, if specified. + if ( '*' === $cols ) { + $cols = $this->get_column_names(); + } + // Fetch all the columns for the table being queried. $column_names = $this->get_column_names();