I want to use aggregate function on mysql. I have to use this query.
SELECT COUNT (*) FROM \`pelayanan\` where \`ID_STATUS\` = '1'
But, It doesn`t work. It became error.
1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '*) FROM `pelayanan` where `ID_STATUS` = '1' LIMIT 0, 25' at line 1
It same error for the other aggregate function like sum.
How can I solve this problem?