A Database Error Occurred

Error Number: 1055

Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'elections_admin.a.id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by

select a.*,(select engname from state where id = a.stateid)eng_statename,(select engname from party where id = a.partyid)eng_partyname,(select telname from state where id = a.stateid)tel_statename,(select telshortname from party where id = a.partyid)tel_partyname,count(a.partyid)as votes,(select symbolpath from party where id = a.partyid)symbol from results a where a.stateid = (select id from state where engname like "andhra pradesh") and a.status=1 and a.year = 2014 and a.distid != 0 and a.constid != 0 and a.constlevel =1 group by a.partyid order by votes desc;

Filename: models/Andhra_pradeshm.php

Line Number: 46