Show correct error when cannot bind query