dresende/node-sql-query — pull request #15 by SPARTAN563 (2013-07-14 18:28:04+00:00)
Title: Add support for multi-conditional exists statements

This makes it possible to generate exists statements which match multiple properties across tables. This is necessary to support multiple primary keys on models in node-orm2.

Changes are implemented in a backwards compatible manner, however upon completion of my updates to node-orm2 this will be moot anyway.

This change allows statements like the following to be generated:

```sql
SELECT * FROM `people` `t1` WHERE EXISTS (SELECT * FROM `parents` WHERE `id` = `t1`.`id` AND `alive` = 1)
```