fix join statements for ordering, make sure we dont retur early if no where query
Merge pull request #23 from tedjt/master

fix join statements for ordering, make sure we dont retur early if no wh...