WHERE post.postid = '$postid'
".iif ($bmpublicbrowse!="0","LEFT JOIN bookmarks ON bookmarks.userid=user.userid AND bookmarks.public='1'","")." WHERE post.postid = '$postid' GROUP BY post.postid