public static function lockOnlyImmediate($count, $key)
{
$table = ipTable('email_queue');
$sql = "update {$table} set\n\t\t`lock` = ?, `lockedAt` = CURRENT_TIMESTAMP\n\t\twhere `immediate` and `lock` is NULL and `send` is NULL order by\n\t\t`id` asc limit " . $count;
return ipDb()->execute($sql, array($key));
}