A PHP Error was encountered

Severity: Notice

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

Filename: controllers/Productos.php

Line Number: 82

Backtrace:

File: /nfs/c10/h06/mnt/176488/domains/hygolet.com.mx/html/apposc/controllers/Productos.php
Line: 82
Function: _error_handler

File: /nfs/c10/h06/mnt/176488/domains/hygolet.com.mx/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 /nfs/c10/h06/mnt/176488/domains/hygolet.com.mx/html/sysosc/core/Exceptions.php:271)

Filename: core/Common.php

Line Number: 564

Backtrace:

File: /nfs/c10/h06/mnt/176488/domains/hygolet.com.mx/html/apposc/models/M_db.php
Line: 10
Function: query

File: /nfs/c10/h06/mnt/176488/domains/hygolet.com.mx/html/apposc/controllers/Productos.php
Line: 82
Function: obtener

File: /nfs/c10/h06/mnt/176488/domains/hygolet.com.mx/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 'GROUP BY CM.id_marca ORDER BY CM.marca ASC' at line 4

SELECT CM.marca,CM.url_marca FROM rel_categorias_marcas AS CM WHERE CM.id_categoria = GROUP BY CM.id_marca ORDER BY CM.marca ASC;

Filename: models/M_db.php

Line Number: 10