Notice: Undefined index: url_anterior in /var/www/html/scripts/transport_nota.php on line 6
No se puede realizar la operación en MYSQL: 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 ' AND id_url_envio =

Tu consulta:

SELECT url,id_campania,id_anunciante FROM rim_envios.url where id_campania= AND id_url_envio =