07.05.2014, 20:10
The error is obviously on getting the data from the database when you login so you need to make several tests check your mysql_log.txt you should get something like this
"Passing query SELECT * FROM `your table` WHERE `userName` = 'the user name' | ii"
"Passing query SELECT * FROM `your table` WHERE `userName` = 'the user name' | ii"