From: Michael Date: Sun, 11 Dec 2016 07:09:48 +0000 (+0000) Subject: Avoid SQL errors X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=23a97465e5aebf4014de116c7f83956c9b50589a;p=friendica.git Avoid SQL errors --- diff --git a/mod/network.php b/mod/network.php index 6a074d0832..cafaa11aec 100644 --- a/mod/network.php +++ b/mod/network.php @@ -442,8 +442,8 @@ function network_content(&$a, $update = 0) { // desired. $sql_post_table = ""; - $sql_options = (($star) ? " and starred = 1 " : ''); - $sql_options .= (($bmark) ? " and bookmark = 1 " : ''); + $sql_options = (($star) ? " AND `thread`.`starred` " : ''); + $sql_options .= (($bmark) ? " AND `thread`.`bookmark` " : ''); $sql_extra = $sql_options; $sql_extra2 = ""; $sql_extra3 = "";