Removed length condition in SQL query.