You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'titulación de adrian AND centro = Escuela Universitaria de Enf AND campus = Gra' at line 1
Código PHP:
<?php
$query2 = mysql_query("SELECT * FROM titulaciones WHERE denominacion = ".$_SESSION['s_carrera']." AND centro = ".$_SESSION['s_centro']." AND campus = ".$_SESSION['s_campus']."") or die(mysql_error());
$row2 = mysql_fetch_array($query2);
?>
No sé dónde está el problema :(