Okay, so I determined the cause, the following segment was inserted by DA below the recorset declaration causing the error..
<?php
//WA Database Search (Copyright 2005, WebAssist.com)
//Recordset: WADAperformer;
//Searchpage: performer_Search.php;
//Form: WADASearchForm;
$WADbSearch1_DefaultWhere = "";
.......
Any Idea why this is being inserted in the wrong order, the pages were created from new templates not inserted into existing pages.
gary