A PHP Error was encountered

Severity: Notice

Message: Undefined index: id

Filename: controllers/Product.php

Line Number: 18

Backtrace:

File: /home/legrand/public_html/application/controllers/Product.php
Line: 18
Function: _error_handler

File: /home/legrand/public_html/index.php
Line: 296
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined index: id

Filename: controllers/Product.php

Line Number: 19

Backtrace:

File: /home/legrand/public_html/application/controllers/Product.php
Line: 19
Function: _error_handler

File: /home/legrand/public_html/index.php
Line: 296
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined index: id

Filename: controllers/Product.php

Line Number: 20

Backtrace:

File: /home/legrand/public_html/application/controllers/Product.php
Line: 20
Function: _error_handler

File: /home/legrand/public_html/index.php
Line: 296
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined index: category_id

Filename: controllers/Product.php

Line Number: 25

Backtrace:

File: /home/legrand/public_html/application/controllers/Product.php
Line: 25
Function: _error_handler

File: /home/legrand/public_html/index.php
Line: 296
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined index: sub_category_id

Filename: controllers/Product.php

Line Number: 27

Backtrace:

File: /home/legrand/public_html/application/controllers/Product.php
Line: 27
Function: _error_handler

File: /home/legrand/public_html/index.php
Line: 296
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined index: category_id

Filename: controllers/Product.php

Line Number: 28

Backtrace:

File: /home/legrand/public_html/application/controllers/Product.php
Line: 28
Function: _error_handler

File: /home/legrand/public_html/index.php
Line: 296
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined index: category_id

Filename: controllers/Product.php

Line Number: 51

Backtrace:

File: /home/legrand/public_html/application/controllers/Product.php
Line: 51
Function: _error_handler

File: /home/legrand/public_html/index.php
Line: 296
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined index: sub_category_id

Filename: controllers/Product.php

Line Number: 51

Backtrace:

File: /home/legrand/public_html/application/controllers/Product.php
Line: 51
Function: _error_handler

File: /home/legrand/public_html/index.php
Line: 296
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined index: brand_id

Filename: controllers/Product.php

Line Number: 51

Backtrace:

File: /home/legrand/public_html/application/controllers/Product.php
Line: 51
Function: _error_handler

File: /home/legrand/public_html/index.php
Line: 296
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined index: id

Filename: controllers/Product.php

Line Number: 51

Backtrace:

File: /home/legrand/public_html/application/controllers/Product.php
Line: 51
Function: _error_handler

File: /home/legrand/public_html/index.php
Line: 296
Function: require_once

A PHP Error was encountered

Severity: Warning

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

Filename: core/Common.php

Line Number: 573

Backtrace:

File: /home/legrand/public_html/application/models/All_model.php
Line: 332
Function: get

File: /home/legrand/public_html/application/controllers/Product.php
Line: 51
Function: related_product

File: /home/legrand/public_html/index.php
Line: 296
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 ') ORDER BY `image_name` DESC LIMIT 10' at line 7

SELECT * FROM `product` JOIN `product_images` ON `product_images`.`product_id` = `product`.`id` WHERE `category_id` IS NULL AND `sub_category_id` IS NULL AND `brand_id` IS NULL AND (`product`.`id` !=) ORDER BY `image_name` DESC LIMIT 10

Filename: models/All_model.php

Line Number: 332