A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: controllers/Products.php

Line Number: 148

Backtrace:

File: /home/colormax/public_html/application/controllers/Products.php
Line: 148
Function: _error_handler

File: /home/colormax/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/colormax/public_html/system/core/Exceptions.php:271)

Filename: core/Common.php

Line Number: 564

Backtrace:

File: /home/colormax/public_html/application/models/admin/Product_Model.php
Line: 107
Function: query

File: /home/colormax/public_html/application/controllers/Products.php
Line: 149
Function: colors

File: /home/colormax/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 'Order By ColorID' at line 1

select * from colors where ProductID= Order By ColorID

Filename: models/admin/Product_Model.php

Line Number: 107