Has anyone seen a weird anomaly with Query of Queries that seems to have been introduced in ACF version
2018.0.12+328566. Version
2018.0.11+326016 doesn't exhibit this behavior. If you have an ORDER BY clause in your query and use a lower case name for the column to order by then the column is duplicated and added to the resulting query. I came across this with some code that did a CFDirectory then did a QoQ on the resulting query to select out records based on the name column and sort the resulting query by the name column. I noticed that the CFDirectory tag will return the query with lower cased column names. The QoQ will upper case the column names and if the ORDER BY clause references the
name
column in lower case the column is duplicated in the resulting query once with
NAME
as the column name and once with
name
as the column name.