| 
					
				 | 
			
			
				@@ -95,7 +95,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             on content.publish_account_id = planAccount.account_id 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            and content.plan_id = planAccount.plan_id 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            and content.publish_timestamp > #{todayStart} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        WHERE planAccount.plan_id = #{planId} and content.id is null 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        WHERE planAccount.plan_id = #{planId} and content.id is null and planAccount.publish_open_flag = 1 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 |