SELECT user
	FROM user u
	JOIN mysql_user m ON u.mysql_user_id = m.id
		WHERE name = #user AND password = MD5(#pass) AND active != FALSE

