Error in query: ORDER BY "CoreVariable".name