prepare("SELECT pix.ID as ID,girls.ID as gid,pix.mid as mid,picis,pix.views,girls.username,pix.likes,pix.comments FROM pix,girls WHERE girls.ID=pix.mid AND girls.premium=1 ORDER BY pix.ID desc LIMIT :startrow,20"); $stmt->bindValue(':startrow', $startrow,PDO::PARAM_INT); $stmt->execute(); $photolink=1; while($i3=$stmt->fetch()) { include('niceimage.php'); } ?>