$sql_trabajos = PDB::query("select * from noticies where categoria = ? order by data_inici desc",$categoria['codi']);
while($trabajo = $sql_trabajos->fetch()){?>
$sql_imatge = mysql_query("select foto4 from noticies_imatges where entrada = '".$trabajo['codi']."' order by ordre limit 1");$imatge = mysql_fetch_array($sql_imatge)?>