Where is the error checking? Make sure that `$sth` is defined (prepare worked) and make sure that there's no error after the execute.