Throw exception on ambigious database relation
Fix invalid example, table_name should be static
Add support for functions in queries

example: array (
	'lower(name)' => 'foo'
)
Fix incorrect logic order in sql query

The previous order caused problems with two identical databases
(say production and development)
Merge pull request #20 from torandi/master

Exception on ambigious database relation and a bug in one example
Fix bug where @and removes existing wheres

Example:
array(
	'foo' => 1,
	'@and' => array(
		'bar' => 2,
		'baz' => 3
	)
)
Would give the query "bar = ? AND baz = ?"
 with params = [1, 2, 3]

Expected result would be "foo = ? AND ( bar = ? and baz = ? ) "
with params = [1, 2, 3].
Merge remote-tracking branch 'edruid/master'

Conflicts:
	BasicObject.php
	examples/user_access/User.php
Merge pull request #21 from torandi/and_subquery_bugfix

Fix bug where @and removes existing wheres
Merge remote-tracking branch 'edruid/master'