A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: models/Products_model.php

Line Number: 255

Backtrace:

File: /home/lorinmak/public_html/application/models/Products_model.php
Line: 255
Function: _error_handler

File: /home/lorinmak/public_html/application/controllers/Products.php
Line: 188
Function: productByID

File: /home/lorinmak/public_html/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: models/Products_model.php

Line Number: 255

Backtrace:

File: /home/lorinmak/public_html/application/models/Products_model.php
Line: 255
Function: _error_handler

File: /home/lorinmak/public_html/application/controllers/Products.php
Line: 188
Function: productByID

File: /home/lorinmak/public_html/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

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

Filename: core/Common.php

Line Number: 568

Backtrace:

File: /home/lorinmak/public_html/application/models/Products_model.php
Line: 71
Function: query

File: /home/lorinmak/public_html/application/models/Products_model.php
Line: 255
Function: categoriesForProduct

File: /home/lorinmak/public_html/application/controllers/Products.php
Line: 188
Function: productByID

File: /home/lorinmak/public_html/index.php
Line: 315
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 '' at line 4

SELECT pc.category_id,c.category_name FROM products_to_categories as pc, categories as c WHERE c.category_id =pc.category_id AND pc.product_id =

Filename: models/Products_model.php

Line Number: 71