mariano/node-db-mysql — Issue #53: wrong query building when changed orders of chains
Author: threedot
Created: 2012-01-25 13:03:58+00:00
State: open

```javascript
var query = dbConn.query();
query.from('tablename');
query.where('`field3` = ?', [5]);
query.select(['field1','field2']);
console.log(query.sql());
```
**Actual Result:**

```sql
FROM `tablename` WHERE field3 = 5SELECT `field1`,`field2`
```

**Targetted Result:**

```sql
SELECT `field1`,`field2` FROM `tablename` WHERE field3 = 5
```