Doctrine 1

Invalid qubquery generated if using oracle adapter instead of pdo_oci