Use quoteName in query