diff --git a/select.inc.php b/select.inc.php
index 9b3451d3..e70ca4d0 100644
--- a/select.inc.php
+++ b/select.inc.php
@@ -25,7 +25,7 @@ if (!$columns) {
$operators = array("=", "<", ">", "<=", ">=", "!=", "LIKE", "REGEXP", "IS NULL");
$i = 0;
foreach ((array) $_GET["where"] as $val) {
- if ($val["col"] && in_array($val["op"], $operators)) {
+ if (strlen($val["col"]) && in_array($val["op"], $operators)) {
$where[] = idf_escape($val["col"]) . " $val[op]" . ($val["op"] != "IS NULL" ? " '" . mysql_real_escape_string($val["val"]) . "'" : "");
echo "
\n";
echo "\n";
echo "