Severity: Notice
Message: Trying to access array offset on value of type bool
Filename: webshop/Products.php
Line Number: 493
Backtrace:
File: /home2/techkey/public_html/application/controllers/webshop/Products.php
Line: 493
Function: _error_handler
File: /home2/techkey/public_html/index.php
Line: 329
Function: require_once
Severity: Notice
Message: Trying to access array offset on value of type bool
Filename: webshop/Products.php
Line Number: 499
Backtrace:
File: /home2/techkey/public_html/application/controllers/webshop/Products.php
Line: 499
Function: _error_handler
File: /home2/techkey/public_html/index.php
Line: 329
Function: require_once
Severity: Notice
Message: Trying to access array offset on value of type bool
Filename: webshop/Products.php
Line Number: 523
Backtrace:
File: /home2/techkey/public_html/application/controllers/webshop/Products.php
Line: 523
Function: _error_handler
File: /home2/techkey/public_html/index.php
Line: 329
Function: require_once
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /home2/techkey/public_html/system/core/Exceptions.php:271)
Filename: core/Common.php
Line Number: 570
Backtrace:
File: /home2/techkey/public_html/application/models/Product_model.php
Line: 487
Function: query
File: /home2/techkey/public_html/application/models/Product_model.php
Line: 453
Function: get_has_discount
File: /home2/techkey/public_html/application/controllers/webshop/Products.php
Line: 587
Function: get_price_with_discount
File: /home2/techkey/public_html/index.php
Line: 329
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 id DESC LIMIT 1' at line 1
SELECT has_discount FROM product_prices WHERE product_id = ORDER BY id DESC LIMIT 1
Filename: models/Product_model.php
Line Number: 487