<br />
<b>Notice</b>:  Trying to get property 'idcontacto' of non-object in <b>/home/hostuper/mallascar.hostuperu.com/apimallascar_asdas/reportes/repo_histocliente.php</b> on line <b>9</b><br />
Error al retornarSQLConn (SELECT 
JSON_ARRAYAGG(
	JSON_OBJECT(
		'esservicio', det.esservicio,
		'cantidad', det.cantidad,
		'descripcion', det.descripcion,
		'precio_venta', det.precio_venta,
		'importe', det.precio_venta * det.cantidad
	)
) detalles, 
JSON_UNQUOTE(JSON_EXTRACT(ven.creacion, '$.usuario')) usuario, 
SUM(det.cantidad * det.precio_venta) total_venta, 
vehi.marca, vehi.placa, ven.* 
FROM ven_ventas ven 
LEFT JOIN con_vehiculos vehi ON vehi.idvehiculo = ven.idvehiculo 
LEFT JOIN ven_detalle_venta det ON det.idventa = ven.idventa 
WHERE ven.idcontacto =  
GROUP BY ven.idventa
ORDER BY ven.nro_doc DESC;):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 'GROUP BY ven.idventa
ORDER BY ven.nro_doc DESC' at line 18