I'm trying to run the following line:
$sqld = "delete FROM ata where convocatoria.nome_entidade='$ent' and convocatoria.cod_convocatoria=ata.cod_convocatoria";
mysql_query($sqld);
I tried phpmyadmin directly and gave the following error:
Unknown column 'convocation.entity_name' in 'where clause'
if you run:
$sqld = "select * FROM ata,convocatoria where convocatoria.nome_entidade='Spa' and convocatoria.cod_convocatoria=ata.cod_convocatoria ";
mysql_query($sqld);
It works but it does select * from convocatoria
, the problem in delete should be there.
Calling table:
Tableata: