but its not an error thats being reported.
see i need to select many records from my database with sorrounding suburbs. so when a single suburb is returened. eg. ANSTEAD or 'BELLBOWRIE'
it writes the select statment and adds the sourounding suburbs.
thats why i have the if and elseif satetment they build part of the select statement. then when its finished the select statement just calles the set variable ("$set_1")within the correct if statement.
does that make it clearer.
cheers.
aron.