Fixed quoted SELECT causing an unknown type error