Severity: Notice
Message: Undefined variable: product_name
Filename: controllers/Home.php
Line Number: 173
Backtrace:
File: /home/sukenya/public_html/application/controllers/Home.php
Line: 173
Function: _error_handler
File: /home/sukenya/public_html/index.php
Line: 315
Function: require_once
Severity: Notice
Message: Undefined variable: product_name
Filename: controllers/Home.php
Line Number: 180
Backtrace:
File: /home/sukenya/public_html/application/controllers/Home.php
Line: 180
Function: _error_handler
File: /home/sukenya/public_html/index.php
Line: 315
Function: require_once
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /home/sukenya/public_html/system/core/Exceptions.php:272)
Filename: core/Common.php
Line Number: 565
Backtrace:
File: /home/sukenya/public_html/application/models/Main_model.php
Line: 1037
Function: get
File: /home/sukenya/public_html/application/controllers/Home.php
Line: 205
Function: get_product_related_products_by_reference_id
File: /home/sukenya/public_html/index.php
Line: 315
Function: require_once
Error Number: 1064
You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ') GROUP BY `p`.`product_id` ORDER BY RAND() LIMIT 8' at line 9
SELECT `p`.*, `b`.`brand_name`, `u`.`unit_code`, `u`.`unit_name` FROM `products` `p` LEFT OUTER JOIN `brands` `b` ON `b`.`brand_id` = `p`.`brand_id` LEFT OUTER JOIN `units` `u` ON `u`.`unit_id` = `p`.`unit_id` JOIN `product_product_categories` `ppca` ON `ppca`.`product_id` = `p`.`product_id` WHERE `p`.`is_deleted` = 0 AND `p`.`is_online` = 1 AND `p`.`product_reference_id` != 'daily-power-2020-gp10wqatkpy7' AND `ppca`.`product_category_id` IN() GROUP BY `p`.`product_id` ORDER BY RAND() LIMIT 8
Filename: models/Main_model.php
Line Number: 1037