unique fix for sql stmt