It looks wrong to me, but something similar worked in a different sql environment i use but it also comes up with no error and doesn't work in unity.
I tried quite a few variations this is where my ideas ended, Its most likely badly wrote SQL but its after working a long stretch and i would appreciate someone pointing out my stupidity