Try to run the statement directly in the db to see...
# exposed
o
Try to run the statement directly in the db to see what is wrong