I have been trying to figure out why this error in the log is occurring!
[27-Apr-2015 14:32:56 UTC] 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 media_type IN (‘photo’,‘video’,‘music’)
an’ at line 3 for query SELECT activity_id, media_type
from
where media_type IN (‘photo’,‘video’,‘music’)
and context = ‘group’
and context_id = 1
and blog_id = 1 made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), do_action(‘template_redirect’), call_user_func_array, bp_template_redirect, do_action(‘bp_template_redirect’), call_user_func_array, bp_screens, do_action(‘bp_screens’), call_user_func_array, groups_screen_group_home, bp_core_load_template, load_template, require_once(’/themes/OneCommunity/groups/single/home.php’), locate_template, load_template, require_once(’/themes/OneCommunity/groups/single/group-header.php’), do_action(‘bp_after_group_header’), call_user_func_array, bp_ap_rtmedia_update_group_medias_count, W3_Db->query, W3_DbCache->query, W3_DbCallUnderlying->query, W3_Db->query, W3_DbProcessor->query, W3_Db->default_query