A PHP Error was encountered

Severity: Notice

Message: Trying to get property 'p_id' of non-object

Filename: controllers/Index.php

Line Number: 100

Backtrace:

File: /home/stoutnails/public_html/application/controllers/Index.php
Line: 100
Function: _error_handler

File: /home/stoutnails/public_html/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Trying to get property 'p_id' of non-object

Filename: controllers/Index.php

Line Number: 104

Backtrace:

File: /home/stoutnails/public_html/application/controllers/Index.php
Line: 104
Function: _error_handler

File: /home/stoutnails/public_html/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/stoutnails/public_html/system/core/Exceptions.php:271)

Filename: core/Common.php

Line Number: 564

Backtrace:

File: /home/stoutnails/public_html/application/models/Index_model.php
Line: 1416
Function: get

File: /home/stoutnails/public_html/application/controllers/Index.php
Line: 114
Function: common_select_order_join_productrelated_limit

File: /home/stoutnails/public_html/index.php
Line: 315
Function: require_once

Database Error

A Database Error Occurred

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 ') GROUP BY `p_id` ORDER BY RAND() LIMIT 4' at line 6

SELECT * FROM `product` JOIN `product_image` ON `product_image`.`pi_pid` = `product`.`p_id` JOIN `product_category` ON `product_category`.`pc_pid` = `product`.`p_id` WHERE `product_image`.`pi_cover` = 'YES' AND `product_category`.`pc_catid` IN() GROUP BY `p_id` ORDER BY RAND() LIMIT 4

Filename: models/Index_model.php

Line Number: 1416