For further understand of why this sql call raises the exception is because i was using a mock object instead of a real id of the instance. "parameters: (<Mock id='140681201083344'>" so sql didnt know what to do with this. but this db call should have been mocked out any way.
For further understand of why this sql call raises the exception is because i was using a mock object instead of a real id of the instance. "parameters: (<Mock id='14068120108 3344'>" so sql didnt know what to do with this. but this db call should have been mocked out any way.