I tried what seemed like the most intuitive approach
$query = \"SELECT * FROM members WHERE username = \'$_CLEAN[username]\' AND password =
Use mysql_num_rows:
if (mysql_num_rows($result)) { //do stuff }