i have this query .. Delete in more than one table .. but If there a field does not have content in any table, it does not delete anything
$sql = " DELETE
property,
unit,
maintenance,
report,
owner
FROM
property,
unit,
maintenance,
report,
owner
WHERE
property.id = '".$_REQUEST['property']."'
AND
unit.property = property.id
AND
unit.id = maintenance.unitid
AND
report.maintenance = maintenance.id
AND
property.id = owner.property
";
SO , what conditions can i use it in the query to skip this problem ..