Change line 90

Cause: 
Not list customers after add.

MySQL_ERRO:
#1055 - 'DATA_BASE_NAME.c.name' isn't in GROUP BY

Solution:
add this fields in the GROUP BY (CID, name, enabled, ap.amount)