$fotos =mysql_query("select * from fotos LIMIT 1"); //agrego LIMIT 1 así te aseguras que sólo recibes un registro$row_fotos=mysql_fetch_array($fotos)//y luego trabajo con $row_fotos[2]. etc...