mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
Quote mysql keyword groups
This commit is contained in:
committed by
Pierrick Le Gall
parent
f62ee77852
commit
884c43280e
@@ -201,7 +201,7 @@ if (count($user_ids) > 0)
|
||||
$query = '
|
||||
SELECT
|
||||
user_id,
|
||||
GROUP_CONCAT(name ORDER BY name SEPARATOR ", ") AS groups
|
||||
GROUP_CONCAT(name ORDER BY name SEPARATOR ", ") AS `groups`
|
||||
FROM '.USER_GROUP_TABLE.'
|
||||
JOIN `'.GROUPS_TABLE.'` ON id = group_id
|
||||
WHERE user_id IN ('.implode(',', $user_ids).')
|
||||
|
||||
Reference in New Issue
Block a user