Maybe it's ok. But it's not clear to me who's job it is to make sure a sql string is an ok subquery. It seems like it should be the job of the query maker - but maybe I've used other conventions elsewhere.