Fixbug login

The SQL Query is wrong (#145)