Fixed Tests with mysql syntax
Fix Query Method
JSLint OK