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 ') OR u.username IN () order by u.username limit 0, 20' at line 1 QUERY: SELECT DISTINCT e.* FROM somirentities e join somirusers_entity u on e.guid=u.guid WHERE u.name IN () OR u.username IN () order by u.username limit 0, 20