__ctx_query
Fixes #1160 by keep the original name of the column and using it if the column type is date.