diff --git a/wishlist.admin.inc b/wishlist.admin.inc
index cde37a6..79a4336 100644
--- a/wishlist.admin.inc
+++ b/wishlist.admin.inc
@@ -40,7 +40,7 @@ function wishlist_admin_settings($form, &$form_state) {
     '#title' => t("Item list description limit"),
     '#default_value' => variable_get("wishlist_item_list_max_description", "200"),
     '#size' => 2,
-    '#maxlength' => 2,
+    '#maxlength' => 3,
     '#description' => t("Limit the length of the description that is shown on the view of all wishlist items."),
   );
 
@@ -181,7 +181,7 @@ function wishlist_admin_page() {
   // If the option to suppress having the admin see their own items is on, then remove em from the query.
   if (variable_get('wishlist_hide_admins_own_items', FALSE)) {
 //    $sql .= "WHERE receiver.uid != %d ";
-    $select->condition('receiver.uid != ' . $user->uid);
+    $select->condition('receiver.uid', $user->uid, '<>');
   }
 //  $sql .= "ORDER BY p.purch_date";
   $select->orderBy('p.purch_date');
@@ -253,9 +253,9 @@ function _wishlist_admin_delete_item() {
   }
 
 //  $result = db_query("SELECT p.wishlist_purch_nid, p.wishlist_purch_wid, p.wishlist_purch_buyer_uid, p.wishlist_purch_quantity FROM {wishlist_purchased} p WHERE p.wishlist_purch_wid = :p.wishlist_purch_wid", array(':p.wishlist_purch_wid' => $delete_wp));
-  $select->db_select('wishlist_purchased', 'p');
+  $select = db_select('wishlist_purchased', 'p');
   $select->fields('p', array('wishlist_purch_nid', 'wishlist_purch_wid', 'wishlist_purch_buyer_uid', 'wishlist_purch_quantity'));
-  $select->condition('wishlist_purch_wid = :p.wishlist_purch_wid', array(':p.wishlist_purch_wid' => $delete_wp));
+  $select->condition('wishlist_purch_wid', $delete_wp);
   $result = $select->execute();
   if ($wishlist_purch = $result->fetchObject()) {
     if ($delete_nid != $wishlist_purch->wishlist_purch_nid) {
