Line 364 of member.php should be this. Simple encapsulate(place single quotes around) the $uid variable in the query.
Code:
Content visible to verified customers only.
also line 540 of that same file the same issue.
Code:
Content visible to verified customers only.