propelorm/Propel — pull request #268 by cedriclombardot (2012-01-26 15:26:44+00:00)
Title: Mark as complex queries look like SELECT * FROM (SELECT * FROM book)

When i create a query like that

```` php
BookQuery::create('mo')
//....
->addSelectQuery($subQuery)
->paginate($page, 10);
````

The method doCount() generate a query wich look like :

```` sql
SELECT COUNT(*)
FROM `book`,
(
SELECT ...
) AS b

````

instead of

```` sql
SELECT COUNT(*)
FROM
(
SELECT ...
) AS b

````