bad sql left after the mailbox in/out merge

This commit is contained in:
friendica 2012-05-05 17:53:23 -07:00
parent 8ae83201cf
commit 49ccefd6c7
3 changed files with 29 additions and 25 deletions

View file

@ -198,7 +198,7 @@ function message_content(&$a) {
$o .= $header;
$r = q("SELECT count(*) AS `total` FROM `mail`
WHERE `mail`.`uid` = %d AND `from-url` $eq '%s' GROUP BY `parent-uri` ORDER BY `created` DESC",
WHERE `mail`.`uid` = %d GROUP BY `parent-uri` ORDER BY `created` DESC",
intval(local_user()),
dbesc($myprofile)
);