A PHP Error was encountered

Severity: Notice

Message: Trying to get property 'id' of non-object

Filename: controllers/Producto.php

Line Number: 123

Backtrace:

File: /home/jqyu1q9ft8g5/public_html/application/controllers/Producto.php
Line: 123
Function: _error_handler

File: /home/jqyu1q9ft8g5/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 MariaDB server version for the right syntax to use near ') AND estatus = 0 LIMIT 0,6' at line 1

SELECT clave,CONVERT(CAST(CONVERT(titulo USING latin1) AS BINARY) USING utf8) AS titulo,marca,id,url_link FROM datos_productos_chimal_admin where idsubfamilia = (select idsubfamilia from datos_productos_chimal_admin WHERE id = ) AND estatus = 0 LIMIT 0,6

Filename: models/Model_general.php

Line Number: 178