Fixed SQL string not passed to query() method.
Fixed missing table alias.
Removed unnecessary 'return' keyword.