Warning: [mysql error 1064] You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'all' at line 18
SELECT
c.id,
c.image_id,
c.date,
c.author,
username AS username,
c.content,
i.path,
i.representative_ext,
validated
FROM comments AS c
INNER JOIN images AS i
ON i.id = c.image_id
LEFT JOIN users AS u
ON u.id = c.author_id
WHERE 1=1 AND validated='false'
ORDER BY c.date DESC
LIMIT 0, all
; in include/dblayer/functions_mysqli.inc.php on line 798
**Reported by plg on 26 Mar 2014 23:10**
$conf['comments_page_nb_comments'] = 'all' produces:
Warning: [mysql error 1064] You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'all' at line 18
SELECT
c.id,
c.image_id,
c.date,
c.author,
username AS username,
c.content,
i.path,
i.representative_ext,
validated
FROM comments AS c
INNER JOIN images AS i
ON i.id = c.image_id
LEFT JOIN users AS u
ON u.id = c.author_id
WHERE 1=1 AND validated='false'
ORDER BY c.date DESC
LIMIT 0, all
; in include/dblayer/functions_mysqli.inc.php on line 798
[Piwigo Bugtracker #3064](http://piwigo.org/bugs/view.php?id=3064)
<!-- github-sync-id:97226772 -->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Reported by plg on 26 Mar 2014 23:10
$conf['comments_page_nb_comments'] = 'all' produces:
Warning: [mysql error 1064] You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'all' at line 18
SELECT
c.id,
c.image_id,
c.date,
c.author,
username AS username,
c.content,
i.path,
i.representative_ext,
validated
FROM comments AS c
INNER JOIN images AS i
ON i.id = c.image_id
LEFT JOIN users AS u
ON u.id = c.author_id
WHERE 1=1 AND validated='false'
ORDER BY c.date DESC
LIMIT 0, all
; in include/dblayer/functions_mysqli.inc.php on line 798
Piwigo Bugtracker #3064