Sometimes you replace double quotes by single quotes when building the query, sometimes not.
Is there a rule behind it?