Swapped expected and actual in the assertEquals()
Convert Zend_Db_Select into string for comparison
Fixed quotes
Pgsql, Sqlite and Static selects need quotes
Merge branch 'mhujer-fix-db-tests'