MySQL Error - DatabaseException after file delete

After deleting a file from Ellg 1.7.3, owned by a group, we get:

DatabaseException

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 ')) AND ( (1 = 1) and e.enabled='yes')' at line 1

QUERY: SELECT count(DISTINCT e.guid) as total FROM elggentities e WHERE ((e.type = 'object' AND e.subtype IN (1))) AND (e.site_guid IN (1)) AND (e.container_guid IN (12/)) AND ( (1 = 1) and e.enabled='yes')

 

The file is indeed gone, but the message does not show good. Anybody have an idea?