A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: controllers/Front.php

Line Number: 116

Backtrace:

File: /home/l4000642/public_html/application/controllers/Front.php
Line: 116
Function: _error_handler

File: /home/l4000642/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: controllers/Front.php

Line Number: 152

Backtrace:

File: /home/l4000642/public_html/application/controllers/Front.php
Line: 152
Function: _error_handler

File: /home/l4000642/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: controllers/Front.php

Line Number: 152

Backtrace:

File: /home/l4000642/public_html/application/controllers/Front.php
Line: 152
Function: _error_handler

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

Filename: core/Common.php

Line Number: 564

Backtrace:

File: /home/l4000642/public_html/application/models/Front_model.php
Line: 233
Function: query

File: /home/l4000642/public_html/application/controllers/Front.php
Line: 152
Function: productos_relacionados

File: /home/l4000642/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 'and producto.id!= limit 6' at line 8

SELECT producto.*,c.foto_1 as color_1,cc.foto_1 as color_2,ccc.foto_1 as color_3,cccc.foto_1 as color_4, marcas.foto_1 as marca , secciones.color_name as color_sec from producto inner join marcas on marcas.id = producto.marca inner join secciones on producto.seccion = secciones.id LEFT JOIN colores as c on c.id = producto.color_foto_1 LEFT JOIN colores as cc on cc.id = producto.color_foto_2 LEFT JOIN colores as ccc on ccc.id = producto.color_foto_3 LEFT JOIN colores as cccc on cccc.id = producto.color_foto_4 where producto.active = 1 and producto.seccion= and producto.id!= limit 6

Filename: models/Front_model.php

Line Number: 233