<br />
<b>Notice</b>:  Trying to get property 'idnota' of non-object in <b>/home/hostuper/mallascar.hostuperu.com/apimallascar_asdas/envio_sunat/nota_credito.php</b> on line <b>18</b><br />
Error al retornarSQLConn (SELECT JSON_UNQUOTE(JSON_EXTRACT(ven.datos_sunat, '$.data.external_id')) external_venta, 
TIME_FORMAT(TIME(JSON_UNQUOTE(JSON_EXTRACT(nota.creacion, '$.fecha'))), '%H:%i:%S') hora_nota, nota.* 
FROM ven_notas_credito nota 
INNER JOIN ven_ventas ven ON JSON_EXTRACT(anulacion, '$.idnotacredito') = nota.idnotacredito WHERE nota.idnotacredito = ;):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 '' at line 4