I\'m just wondering if someone could point me in the right direction here, I think i\'ve been looking at it for too long so can\'t see the mistake.
The following code:>
WHERE <[LoweredUserName]
The above syntax especially the < seems incorrect. Try running SQL profiler on the SQL server (if applicable) to see what SQL was sent to the server.
Also use parameters to prevent SQL injection attacks.