--- uc_order.admin.inc.orig 2009-04-21 20:34:19.000000000 -0700 +++ uc_order.admin.inc 2009-04-21 20:38:44.000000000 -0700 @@ -1378,12 +1378,13 @@ function uc_order_load_product_select($o if (!empty($_POST['search'])) { $search = strtolower(str_replace('*', '%', check_plain($_POST['search']))); - $args[] = $search; - $args[] = $search; + $search_args = $args; + $search_args[] = $search; + $search_args[] = $search; $result = db_query("SELECT n.nid, n.title FROM {node} AS n LEFT JOIN " ."{uc_products} AS p ON n.nid = p.nid WHERE n.type IN " ."(". db_placeholders($args, 'varchar') .") AND (LOWER(n.title) LIKE '%s' OR LOWER(p.model) LIKE '%s')" - ." ORDER BY n.title", $args); + ." ORDER BY n.title", $search_args); } else { $result = db_query("SELECT nid, title FROM {node} WHERE type IN (". db_placeholders($args, 'varchar') .") "