Warning: Cannot modify header information - headers already sent by (output started at /home/ccbd/public_html/application/controllers/category.php:747) in /home/ccbd/public_html/system/core/Common.php on line 440
Database Error

A Database Error Occurred

Error Number: 1052

Column 'turn_on' in where clause is ambiguous

SELECT `CategoryID`, `CategoryName`, `Image`, `IsActive`, `alternative_text`, `seoprofile`.`display_url`, `category_icon` FROM (`category`) INNER JOIN `seoprofile` ON `seoprofile`.`cate_id` = `category`.`CategoryID` WHERE `IsActive` = 1 AND `istag` = 0 AND `turn_on` = 1 AND `display_url` !='' AND display_url !='promo/' AND display_url !='coupons/' GROUP BY `CategoryID` ORDER BY `CategoryName` asc, `sub_categories_xdays_click` desc, `last_xdays_click` desc, `CategoryName` asc

Filename: /home/ccbd/public_html/models/categories_model.php

Line Number: 29