A PHP Error was encountered

Severity: Notice

Message: Undefined property: stdClass::$SaleEndDate

Filename: controllers/Product.php

Line Number: 38

Backtrace:

File: /home/bazaarkey/public_html/application/controllers/Product.php
Line: 38
Function: _error_handler

File: /home/bazaarkey/public_html/index.php
Line: 316
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined property: stdClass::$ProductId

Filename: controllers/Product.php

Line Number: 45

Backtrace:

File: /home/bazaarkey/public_html/application/controllers/Product.php
Line: 45
Function: _error_handler

File: /home/bazaarkey/public_html/index.php
Line: 316
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined property: stdClass::$ProductCatId

Filename: controllers/Product.php

Line Number: 45

Backtrace:

File: /home/bazaarkey/public_html/application/controllers/Product.php
Line: 45
Function: _error_handler

File: /home/bazaarkey/public_html/index.php
Line: 316
Function: require_once

A PHP Error was encountered

Severity: Warning

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

Filename: core/Common.php

Line Number: 564

Backtrace:

File: /home/bazaarkey/public_html/application/models/admin/Product_model.php
Line: 373
Function: query

File: /home/bazaarkey/public_html/application/controllers/Product.php
Line: 45
Function: GetRelatedProducts

File: /home/bazaarkey/public_html/index.php
Line: 316
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 'and p.ProductId<> and p.isdraft=0 and p.isdelete=0 and p.isdirectaccess=0 order ' at line 5

SELECT p.*,(select pg.imagepath from productgallery pg where pg.IsDelete=0 and pg.IsFeatured=1 and pg.ProductId=p.productid limit 1)as FeaturedImage,pc.CatName as ProductCatname FROM product p join productcat pc on p.productcatid=pc.ProductCatId where p.saleenddate>=CURRENT_DATE() and pc.ProductCatId= and p.ProductId<> and p.isdraft=0 and p.isdelete=0 and p.isdirectaccess=0 order by p.createddate desc limit 6

Filename: models/admin/Product_model.php

Line Number: 373