Tag Value Change SQL Error

I have a tag setup with a value changed event that is making a database call using system.db.runPrepQuery. If the database returns an error on tag change I can see the error in the console. If the tag is changed subsequent times no error is logged. Can anyone think of why the error would only log on the initial value change and not on subsequent changes?

If it’s one of our loggers it might be logging subsequent errors on DEBUG level for the next 60 seconds.