Fixed broken SQL-Statement

There was a missing "AND" in the WHERE clause.