$autozapros = mysql_query("SELECT * FROM `profile` WHERE login_prof='{$_SESSION['login_prof']}' AND id_com_prof LIKE '%{$_SESSION['id_com_prof']}%'",$db);
$profile = mysql_fetch_array($autozapros);
$profile=$db->query("SELECT * FROM `profile` WHERE login_prof='{$_SESSION['login_prof']}' AND id_com_prof LIKE '%{$_SESSION['id_com_prof']}%'");
$autozapros = mysql_query(
"SELECT *
FROM `profile`
WHERE
login_prof='$_SESSION[login_prof]' AND
id_com_prof LIKE '%$_SESSION[id_com_prof]%'",
$db
);
$profile = mysql_fetch_array($autozapros);