looks like it should return the correct results,
to trouble, disaple the email temporarily by changeing the trigger code:
if ((isset($_POST["Save"]) || isset($_POST["Save_x"]))) {
to:
if ("" != "") {
then write the query to the page:
<?php echo($query_rsOpenOrderEmail); ?>
copy the SQL that generates and run that on the database directly using PHP myAdmin or another GUI tool.