Save an item again (or run sync as you did). With that switch set it will log many more information messages. The SQL it is trying to execute should be in the message previous to the exception, so you can see just what the problem is.