A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: controllers/Category.php

Line Number: 39

Backtrace:

File: /home/lightni2/public_html/application/controllers/Category.php
Line: 39
Function: _error_handler

File: /home/lightni2/public_html/index.php
Line: 319
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: controllers/Category.php

Line Number: 40

Backtrace:

File: /home/lightni2/public_html/application/controllers/Category.php
Line: 40
Function: _error_handler

File: /home/lightni2/public_html/index.php
Line: 319
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: controllers/Category.php

Line Number: 41

Backtrace:

File: /home/lightni2/public_html/application/controllers/Category.php
Line: 41
Function: _error_handler

File: /home/lightni2/public_html/index.php
Line: 319
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: controllers/Category.php

Line Number: 42

Backtrace:

File: /home/lightni2/public_html/application/controllers/Category.php
Line: 42
Function: _error_handler

File: /home/lightni2/public_html/index.php
Line: 319
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: controllers/Category.php

Line Number: 43

Backtrace:

File: /home/lightni2/public_html/application/controllers/Category.php
Line: 43
Function: _error_handler

File: /home/lightni2/public_html/index.php
Line: 319
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: controllers/Category.php

Line Number: 58

Backtrace:

File: /home/lightni2/public_html/application/controllers/Category.php
Line: 58
Function: _error_handler

File: /home/lightni2/public_html/index.php
Line: 319
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: category_id

Filename: models/Catalog_model.php

Line Number: 353

Backtrace:

File: /home/lightni2/public_html/application/models/Catalog_model.php
Line: 353
Function: _error_handler

File: /home/lightni2/public_html/application/controllers/Category.php
Line: 63
Function: get_category_products

File: /home/lightni2/public_html/index.php
Line: 319
Function: require_once

A PHP Error was encountered

Severity: Warning

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

Filename: core/Common.php

Line Number: 573

Backtrace:

File: /home/lightni2/public_html/application/models/Catalog_model.php
Line: 361
Function: query

File: /home/lightni2/public_html/application/controllers/Category.php
Line: 63
Function: get_category_products

File: /home/lightni2/public_html/index.php
Line: 319
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 MariaDB server version for the right syntax to use near 'AND lp_products.product_status = 1 GROUP BY lp_products.id' at line 37

SELECT lp_products.id, lp_products.`name`, lp_products.`sku`, lp_products.`seo_key`, lp_products.`price`, lp_product_images.image, lp_categories.category_name, lp_categories.`seo_key` AS cseokey, lp_categories.category_min_price, lp_categories.category_min_qty FROM lp_products INNER JOIN lp_product_categories ON lp_product_categories.product_id = lp_products.id INNER JOIN lp_categories ON lp_product_categories.category_id = lp_categories.id INNER JOIN lp_product_images ON lp_product_images.product_id = lp_products.id WHERE lp_product_categories.category_id = AND lp_products.product_status = 1 GROUP BY lp_products.id

Filename: models/Catalog_model.php

Line Number: 361