A Database Error Occurred

Error Number: 1054

Unknown column 'customer' in 'where clause'

SELECT * FROM (`product_profile_info` ppi) INNER JOIN `products_mapping` as pm ON `pm`.`product_id`=`ppi`.`id` WHERE `ppi`.`active` = 1 AND `ppi`.`types` = 'trends' AND `ppi`.id!= customer-register.html GROUP BY `ppi`.`id` ORDER BY `ppi`.`id` desc

Filename: /home/iedcommunication/public_html/models/admin/category_model.php

Line Number: 628