Severity: Notice
Message: Undefined offset: 1
Filename: controllers/home.php
Line Number: 66
Severity: Notice
Message: Trying to get property of non-object
Filename: controllers/home.php
Line Number: 66
Severity: Notice
Message: Undefined offset: 1
Filename: controllers/home.php
Line Number: 73
Severity: Notice
Message: Trying to get property of non-object
Filename: controllers/home.php
Line Number: 73
Severity: Notice
Message: Undefined offset: 1
Filename: controllers/home.php
Line Number: 74
Severity: Notice
Message: Trying to get property of non-object
Filename: controllers/home.php
Line Number: 74
Severity: Notice
Message: Undefined offset: 1
Filename: controllers/home.php
Line Number: 78
Severity: Notice
Message: Trying to get property of non-object
Filename: controllers/home.php
Line Number: 78
Severity: Notice
Message: Undefined offset: 1
Filename: controllers/home.php
Line Number: 78
Severity: Notice
Message: Trying to get property of non-object
Filename: controllers/home.php
Line Number: 78
Severity: Notice
Message: Undefined offset: 1
Filename: controllers/home.php
Line Number: 81
Severity: Notice
Message: Trying to get property of non-object
Filename: controllers/home.php
Line Number: 81
Severity: Notice
Message: Undefined offset: 1
Filename: controllers/home.php
Line Number: 81
Severity: Notice
Message: Trying to get property of non-object
Filename: controllers/home.php
Line Number: 81
Severity: Notice
Message: Undefined offset: 1
Filename: controllers/home.php
Line Number: 82
Severity: Notice
Message: Trying to get property of non-object
Filename: controllers/home.php
Line Number: 82
Severity: Notice
Message: Undefined offset: 1
Filename: controllers/home.php
Line Number: 83
Severity: Notice
Message: Trying to get property of non-object
Filename: controllers/home.php
Line Number: 83
Severity: Notice
Message: Undefined offset: 1
Filename: controllers/home.php
Line Number: 83
Severity: Notice
Message: Trying to get property of non-object
Filename: controllers/home.php
Line Number: 83
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /var/www/system/core/Exceptions.php:185)
Filename: core/Common.php
Line Number: 442
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 RAND()' at line 8
SELECT `p`.`id`, `p`.`image_path`, `p`.`titulo`, `a`.`nombre_autor`, `p`.`autor_id`, `p`.`autor2_id`, `p`.`genero_id`, `g`.`nombre_genero`, `p`.`user_rating`, `p`.`tipo` FROM (`productos` AS p) JOIN `autores` AS a ON `p`.`autor_id`=`a`.`id` JOIN `generos` AS g ON `p`.`genero_id`=`g`.`id` WHERE `p`.`autor_id` = '333' AND `p`.`id` != '523' AND `p`.`id` != ORDER BY RAND()
Filename: /var/www/models/producto_model.php
Line Number: 286