 
 
 /*	OTHERWISE: LEAVING A GROUP
-*//* IMPLIES PICKING A NEW MODERATOR IF CURRENT USER WAS MODERATOR */
+	IMPLIES PICKING A NEW MODERATOR IF CURRENT USER WAS MODERATOR 
+*/
 
 
 DELETE FROM `ipp_group_join` WHERE `ipp_group_join`.`group_id` = /* group_id */ AND `ipp_group_join`.`user_id` = /* user_id */;



/*	DELETING A GROUP
*//* SHOULD ONLY BE ALLOWED IF */

SELECT count(`id`) as total 
FROM `ipp_group_join` 



/*	DELETING A DOCUMENT 
	SHOULD ONLY BE ALLOWED IF
*/

SELECT `ipp_document`.`admin_id`
FROM `ipp_document` 
