Fixed a typo that caused a crash trying to query a non-existent DB table.