Its showing some error .. How to correct this query? : My problem is when I run this query , its showing some error like 
Warning: mysqli::query(): (21000/1242): Subquery returns more than 1 row

Help me to correct this query. Thank You in advance 

 "SELECT a.sname,a.date,a.Roll_Number,b.branch,
								COUNT(DISTINCT a.date) AS totaldays,
								
								(SELECT COUNT(a.attendance_status)
								FROM attendance as a , branch as b  
			                    WHERE a.attendance_status='Present' and b.id='".$_GET['id']."' and  a.branch=b.branch  GROUP BY a.sid )
								 as present_days
                                 FROM attendance as a , branch as b  
								 WHERE b.id='".$_GET['id']."'
								and  a.branch=b.branch
                                GROUP BY a.sname ";