<? $q2 = mysql_query("SELECT * FROM `gallery_foto` WHERE `metka`='0' ORDER BY id DESC LIMIT 14"); while ($foto = mysql_fetch_assoc($q2)){ $gallery = mysql_fetch_assoc(mysql_query("SELECT * FROM `gallery` WHERE `id` = '$foto[id_gallery]' limit 1"));$ank = get_user($foto['id_user']);