Title: 1echero's Replies | WordPress.org

---

# 1echero

  [  ](https://wordpress.org/support/users/1echero/)

 *   [Profile](https://wordpress.org/support/users/1echero/)
 *   [Topics Started](https://wordpress.org/support/users/1echero/topics/)
 *   [Replies Created](https://wordpress.org/support/users/1echero/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/1echero/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/1echero/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/1echero/engagements/)
 *   [Favorites](https://wordpress.org/support/users/1echero/favorites/)

 Search replies:

## Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)

 *   Forum: [Installing WordPress](https://wordpress.org/support/forum/installation/)
   
   In reply to: [Missing Argument 2 for wpdb::prepare()](https://wordpress.org/support/topic/missing-argument-2-for-wpdbprepare-3/)
 *  [1echero](https://wordpress.org/support/users/1echero/)
 * (@1echero)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/missing-argument-2-for-wpdbprepare-3/page/2/#post-3262965)
 * dear keesiemeijer, it works, thank you!
 *   Forum: [Installing WordPress](https://wordpress.org/support/forum/installation/)
   
   In reply to: [Missing Argument 2 for wpdb::prepare()](https://wordpress.org/support/topic/missing-argument-2-for-wpdbprepare-3/)
 *  [1echero](https://wordpress.org/support/users/1echero/)
 * (@1echero)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/missing-argument-2-for-wpdbprepare-3/page/2/#post-3262962)
 * dear keesiemeijer,
 * I guess my problem is similar but concerns some other file. could you please 
   help me? I have info:
 * Warning: Missing argument 2 for wpdb::prepare(), called in /home/xxxxx/public_html/
   wp-content/themes/Nuance/functions/sidebars.php on line 83 and defined in /home/
   xxxxx/public_html/wp-includes/wp-db.php on line 990
 * I will be grateful for your help because this problem concerns a lot of my websites.
   Of course I can send you more files to get to know the problem.
 * Sidebars.php:
 *  /* User made sidebars */
    $w_count = 0;
 *  global $wpdb;
 *  $widgetized_pages = $wpdb->get_col($wpdb->prepare(“SELECT DISTINCT meta_value
   FROM $wpdb->postmeta WHERE meta_key = ‘jw_sidebar'”));
 *  if($widgetized_pages){
 *  foreach($widgetized_pages as $w_page){
 *  $widget_id = strtolower(str_replace(‘ ‘, ‘_’, $w_page));
 *  register_sidebar(array(
    ‘name’ => $w_page, ‘id’ => ‘jw_widgetsection_’.$widget_id,‘
   description’ => ”, ‘before_widget’ => ‘<div id=”%1$s” class=”widget %2$s”>’, ‘
   after_widget’ => ‘</div><div class=”separator”></div>’, ‘before_title’ => ‘<h5
   >’, ‘after_title’ => ‘</h5>’ ));

Viewing 2 replies - 1 through 2 (of 2 total)