holly

You know, it's very simple thing to do and almost no one does it. Put a debug print immediately after you create the SQL statement. You might be amazed how quickly you can spot simple problems.