diff --git a/adminer/select.inc.php b/adminer/select.inc.php index 27e845b0..410b1f69 100644 --- a/adminer/select.inc.php +++ b/adminer/select.inc.php @@ -33,6 +33,9 @@ $limit = $adminer->selectLimitProcess(); $from = ($select ? implode(", ", $select) : "*" . ($oid ? ", $oid" : "")); if ($jush == "sql") { foreach ($columns as $key => $val) { + if ($select && !$select[$key]) { + continue; + } $as = convert_field($fields[$key]); if ($as) { $from .= ", $as AS " . idf_escape($key);