$yyy_query = mysql_query("SELECT * FROM yyy ORDER BY id DESC WHERE ad=".$_GET['ad'].""); while ($yyy = mysql_fetch_array($yyy_query)) {