SELECT GROUP_CONCAT(usertype_name SEPARATOR ','), customer_name FROM `pre`.`customer` AS `Viewcustomer` WHERE `Viewcustomer`.`customer_status` = 0 AND `Viewcustomer`.`customer_type` = 'A1'
GROUP BY `customer_id` DESC
How to write this query in cakephp?
Kindly help me to write above query in cakephp. I don't know how to write group_contact
in cakephp query. I am using cakephp 2x