Please use the printf() function to echo your query strings before performing the query and paste them in code tags here.
I have talked about this with the other developers, could you please explain more about what you mean? We are deeply sorry for not making this easy for you as you are helping use.