12.01.2016, 13:51
We need some sql logs, anyway you can try to print the query on server console and then paste it directly into your DBMS, it should give you some error and then it's easier to make it work. This is just my suggestion.