Severity: Warning
Message: Invalid argument supplied for foreach()
Filename: models/Articles_model.php
Line Number: 108
Backtrace:
File: /home/sutra/public_html/application/modules/articles/models/Articles_model.php
Line: 108
Function: _error_handler
File: /home/sutra/public_html/application/controllers/Home.php
Line: 121
Function: get_by_tags
File: /home/sutra/public_html/index.php
Line: 319
Function: require_once
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /home/sutra/public_html/system/core/Exceptions.php:271)
Filename: core/Common.php
Line Number: 570
Backtrace:
File: /home/sutra/public_html/application/modules/articles/models/Articles_model.php
Line: 130
Function: get
File: /home/sutra/public_html/application/controllers/Home.php
Line: 121
Function: get_by_tags
File: /home/sutra/public_html/index.php
Line: 319
Function: require_once
Error Number: 1064
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') IS NULL ORDER BY `date_published` desc LIMIT 4' at line 6
SELECT * FROM `pcms_articles` WHERE `id` != '9' AND `status` = 1 AND `date_published` <= NOW() AND () IS NULL ORDER BY `date_published` desc LIMIT 4
Filename: modules/articles/models/Articles_model.php
Line Number: 130