function group_plugin_query($group) { $tables = DB_PLUGINS . ', ' . DB_PLUGINS_LOOKUP; //set variable value to retrieve plugin_id $columns = DB_PLUGINS_LOOKUP . '.plugin_id'; $where = DB_PLUGINS_LOOKUP . '.plugin_id=' . DB_PLUGINS . '.plugin_id AND ' . DB_PLUGINS_LOOKUP . '.content_group=?'; $field = array($group); //build query and return results $db_results = BuildQuery::all_field_query($tables, $columns, $where, $field); self::$db_group_plugins = $db_results; }