There should be an operator at the end of the SQL subclause in the line

$placeholders = 'u.uid NOT IN (%d'. str_repeat(',%d', count($sent) - 1) .')';

probably either an AND or an OR.

Without the operator, the resulting SELECT statement is bad.

Comments

chx’s picture

Status: Active » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)