Title: [Plugin: BuddyPress Groupblog] php error log &#8211; database error
Last modified: August 19, 2016

---

# [Plugin: BuddyPress Groupblog] php error log – database error

 *  [Mark](https://wordpress.org/support/users/markschafer/)
 * (@markschafer)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/plugin-buddypress-groupblog-php-error-log-database-error/)
 * Buddypress 1.1.1 – I’m getting the following pair of errors in my php error log
   when Groupblog is activated. No error message on the frontend and the plugin 
   does seem to work properly.
 * [09-Oct-2009 09:24:13] WordPress database error You have an error in your SQL
   syntax; check the manual that corresponds to your MySQL server version for the
   right syntax to use near ‘WHERE group_id = 16’ at line 1 for query SELECT * FROM
   WHERE group_id = 16 made by require, wp, WP->main, do_action_ref_array, call_user_func_array,
   bp_groupblog_setup_nav, bp_groupblog_is_blog_enabled, BP_Groupblog->bp_groupblog,
   BP_Groupblog->populate
 * [09-Oct-2009 09:24:14] WordPress database error You have an error in your SQL
   syntax; check the manual that corresponds to your MySQL server version for the
   right syntax to use near ‘WHERE group_id = 16’ at line 1 for query SELECT * FROM
   WHERE group_id = 16 made by require, require_once, do_action, call_user_func_array,
   bp_core_do_catch_uri, load_template, require_once, do_action, call_user_func_array,
   groupblog_screen_blog_latest, load_template, require_once, bp_groupblog_is_blog_enabled,
   BP_Groupblog->bp_groupblog, BP_Groupblog->populate
 * [http://wordpress.org/extend/plugins/bp-groupblog/](http://wordpress.org/extend/plugins/bp-groupblog/)

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

 *  [ftr](https://wordpress.org/support/users/ftr/)
 * (@ftr)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/plugin-buddypress-groupblog-php-error-log-database-error/#post-1239691)
 * Same error here in the logs.
    MySQL version = 5.1.39.
 * ‘FROM WHERE’?
    According line 40 to bp-groupblog-classes.php it should be: `FROM{
   $bp->groupblog->table_name} WHERE`
 *  Thread Starter [Mark](https://wordpress.org/support/users/markschafer/)
 * (@markschafer)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/plugin-buddypress-groupblog-php-error-log-database-error/#post-1239697)
 * [@ftr](https://wordpress.org/support/users/ftr/) – Thanks for the feedback. I’m
   not familiar enough with php to know whether you are just sharing info or suggesting
   a fix. I went to change line 40 but found it is just as you posted. Should line
   40 be changed? If yes, how exactly? Thanks!
 *  [Mariusooms](https://wordpress.org/support/users/mariusooms/)
 * (@mariusooms)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/plugin-buddypress-groupblog-php-error-log-database-error/#post-1239705)
 * This is fixed now. This plugin does not create any tables, so this code was from
   previous development.

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

The topic ‘[Plugin: BuddyPress Groupblog] php error log – database error’ is closed
to new replies.

 * 3 replies
 * 3 participants
 * Last reply from: [Mariusooms](https://wordpress.org/support/users/mariusooms/)
 * Last activity: [16 years, 7 months ago](https://wordpress.org/support/topic/plugin-buddypress-groupblog-php-error-log-database-error/#post-1239705)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
