<br />
<b>Notice</b>:  Trying to get property 'nrofilas' of non-object in <b>/home/hostuper/mallascar.hostuperu.com/apimallascar_asdas/paginados/presentaciones.php</b> on line <b>13</b><br />
<br />
<b>Notice</b>:  Trying to get property 'nropag' of non-object in <b>/home/hostuper/mallascar.hostuperu.com/apimallascar_asdas/paginados/presentaciones.php</b> on line <b>14</b><br />
Error al retornarSQLConn (SELECT 
obtener_stock_actual(pres.idpresentacion, NULL) stock_total, 
IF(pven.idprecioventa IS NULL, NULL, JSON_ARRAYAGG(JSON_OBJECT('idtipoprecio', pven.idtipoprecio, 'tipo_precio', tipo.nombre, 'precio_venta', pven.precio_venta))) precios_venta,
UPPER(TRIM(pres.nombre)) texto_buscable,
mar.nombre marca, und.simbolo unidad, cat.nombre categoria, 
pres.*  
FROM pres_presentaciones pres 
INNER JOIN pres_categorias cat ON cat.idcategoria = pres.idcategoria 
LEFT JOIN pres_marcas mar ON mar.idmarca = pres.idmarca 
LEFT JOIN pres_unidades und ON und.idunidad = pres.idunidad 
LEFT JOIN pres_precios_venta pven ON pven.idpresentacion = pres.idpresentacion AND pven.vigencia = 1
LEFT JOIN pres_tipos_precios tipo ON tipo.idtipoprecio = pven.idtipoprecio  
WHERE pres.esservicio IS NULL AND pres.vigencia = 1  AND pres.vigencia = 1  GROUP BY idpresentacion  LIMIT  OFFSET 0):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 'OFFSET 0' at line 13