/** * Delete user from agency * @param the user you want to delete $otherUserId * @param your id $myID * @return success/failure; */ public static function deleteFromAgency($otherUserId, $myID) { $query = "DELETE from agencies Where user_one_id = {$otherUserId} AND user_two_id = {$myID} OR user_one_id = {$myID} AND user_two_id = {$otherUserId} "; $result = ConnectionFactory::DeleteRowFromTableComplex($query); return $result; }