this:
Code:
$uignore = $DB_site->query_first("SELECT uignore FROM user WHERE username='$post[username]'");
should be this:
Code:
$uignore = $DB_site->query_first("SELECT uignore FROM user WHERE userid='$post[userid]'");
Or you will get lots of mysql errors for users whose username includes '
I'm also unsure why you would need to run this query to begin with. You need to find a way to get the global ignored users and cache them, rather than running this extra query for every thread