Warning: Undefined array key "pais" in /home/preenvio/public_html/procesos/procesar_fulfillment.php on line 40
SELECT * FROM `pre_envios` where superado=0 and elim=0 and pais = and fecha_venta > '2026-07-22 00:00:00' and status not in ('cancelled') and fulfillment = 1 and synclightdata IN (1,2) and fulfillment_sync = 0 and didEnvio != 0
Fatal error: Uncaught mysqli_sql_exception: 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 'and fecha_venta > '2026-07-22 00:00:00' and status not in ('cancelled') and ful' at line 1 in /home/preenvio/public_html/procesos/procesar_fulfillment.php:66
Stack trace:
#0 /home/preenvio/public_html/procesos/procesar_fulfillment.php(66): mysqli_query(Object(mysqli), 'SELECT * FROM `...')
#1 {main}
thrown in /home/preenvio/public_html/procesos/procesar_fulfillment.php on line 66