Fix a typo in an SQL query in monitor_app.

fixes bug 849966

@lonnen r?