- WHERE `notify`.`uid` = %d AND `notify`.`msg` != ''
- AND NOT (`notify`.`type` IN (%d, %d))
- AND $seensql `notify`.`seen` ORDER BY `notify`.`date` $order LIMIT %d, 50",
- intval($uid),
- intval(Notification\Type::INTRO),
- intval(Notification\Type::MAIL),
- intval($offset)
- );
+ WHERE `notify`.`uid` = ? AND `notify`.`msg` != ''
+ AND NOT (`notify`.`type` IN (?, ?))
+ AND $seensql `notify`.`seen` ORDER BY `notify`.`date` $order LIMIT ?, 50",
+ $uid,
+ Notification\Type::INTRO,
+ Notification\Type::MAIL,
+ $offset
+ ));