Include quote column in custom query