in reply to Re^2: Compound Sql Statement
in thread Compound Sql Statement

There's a typo. Change:
$sql = <<EO_SQL;
to:
$sql = <<EOF_SQL;