Severity: Notice
Message: Trying to get property 'IdProduct' of non-object
Filename: models/ViewModel.php
Line Number: 160
Backtrace:
File: /home/dermelacom/public_html/application/models/ViewModel.php
Line: 160
Function: _error_handler
File: /home/dermelacom/public_html/application/controllers/Welcome.php
Line: 144
Function: geProductDetail
File: /home/dermelacom/public_html/index.php
Line: 315
Function: require_once
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /home/dermelacom/public_html/system/core/Exceptions.php:271)
Filename: core/Common.php
Line Number: 570
Backtrace:
File: /home/dermelacom/public_html/application/models/ViewModel.php
Line: 164
Function: query
File: /home/dermelacom/public_html/application/controllers/Welcome.php
Line: 144
Function: geProductDetail
File: /home/dermelacom/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 'and p.Status = 1' at line 4
select p.IdManufacturer,p.StockCode,p.Barcode,p.SKT,p.Quantity,p.IdProduct,p.Name,p.Price,p.Psf,pco.ShortDescription,pco.Description from de_product as p join de_product_content as pco on pco.IdProduct = p.IdProduct join de_product_seo as ps on ps.IdProduct = p.IdProduct where p.IdProduct = and p.Status = 1
Filename: models/ViewModel.php
Line Number: 164