Fixes custom SQL query rewriting in PodsData->build()