mi dice che non trova l'immagine!
Questo è lo script:

$query_limit = mysql_query("SELECT * FROM tabella order by id_pro DESC LIMIT $primo, $per_page");
while ($riga = mysql_fetch_array( $query_limit ) )
{
if ($riga["watermark"] == "on")
{

$image = $riga["foto1p"];
$overlay = 'img/affittato.gif';
if (!file_exists($image))
{
die("Image does not exist.");
}
etc....
}
}

mi stampa questo: Image does not exist