You may need to do some sanity-checking before you construct your query...
In reply to Re: place holder error by apl in thread place holder error by Bheema_Tyco