Mysql display library fix

fix incorrect SQL query which breaks the front page rendering after login.