Fixed bug with Query_Builder where the subquery extend code was inside the properties code so it only triggered when there were explicit properties.