<?php
$query = "SELECT * FROM frontpagenews ORDER BY id DESC LIMIT ".$begin.",".$posts_per_pag;
$result = mysql_query($query) or die( mysql_error()."<br />De query: ".$query);
?>
<?php
$query="SELECT * FROM frontpagenews ORDER BY id DESC LIMIT ".$begin.",".$posts_per_pag;