Severity: Warning
Message: Undefined array key 0
Filename: controllers/Web.php
Line Number: 612
Backtrace:
File: /home2/a178497d/sheelvantandsons.com/application/controllers/Web.php
Line: 612
Function: _error_handler
File: /home2/a178497d/sheelvantandsons.com/index.php
Line: 315
Function: require_once
Severity: Warning
Message: Undefined array key 0
Filename: controllers/Web.php
Line Number: 613
Backtrace:
File: /home2/a178497d/sheelvantandsons.com/application/controllers/Web.php
Line: 613
Function: _error_handler
File: /home2/a178497d/sheelvantandsons.com/index.php
Line: 315
Function: require_once
Severity: Warning
Message: Attempt to read property "p_ref_mc_id" on null
Filename: controllers/Web.php
Line Number: 613
Backtrace:
File: /home2/a178497d/sheelvantandsons.com/application/controllers/Web.php
Line: 613
Function: _error_handler
File: /home2/a178497d/sheelvantandsons.com/index.php
Line: 315
Function: require_once
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /home2/a178497d/sheelvantandsons.com/system/core/Exceptions.php:272)
Filename: core/Common.php
Line Number: 571
Backtrace:
File: /home2/a178497d/sheelvantandsons.com/application/models/Items_mdl.php
Line: 43
Function: query
File: /home2/a178497d/sheelvantandsons.com/application/controllers/Web.php
Line: 629
Function: get_products_with_image
File: /home2/a178497d/sheelvantandsons.com/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 MySQL server version for the right syntax to use near 'ORDER BY RAND() LIMIT 0, 3' at line 10
SELECT p.*,mc_title,sc_title,pi_image,pi_path,pi_base_url FROM products AS p JOIN main_category AS mc ON mc.mc_id = p.p_ref_mc_id JOIN sub_category AS sc ON sc.sc_id = p.p_ref_sc_id LEFT JOIN products_images AS tmp ON p.p_id = tmp.pi_ref_p_id WHERE p_ref_mc_id = ORDER BY RAND() LIMIT 0, 3
Filename: models/Items_mdl.php
Line Number: 43