For some reason it wasn't working using the constant, but I'll investigate it and see what the query looks like.