I've fixed, for those who had/have the same problem, ill put here the solution for it
Remove htmlentities at your anti sql injection code
P.S Any idea on how to check multiple data?
i've tryed this, but no success
$q = mysql_query("SELECT notes FROM banip,unbanip,logs ORDER BY date DESC LIMIT 0,7");
if (mysql_num_rows($q) < 1 )