DB Error: selectList query failed

SELECT DISTINCT file_attachments.*, channels.name AS channel, files.name, files.ext, files.title_cs AS title, files.type_id, files.size, files.visible, files.private FROM file_attachments LEFT JOIN files ON files.id = file_attachments.file_id LEFT JOIN channels ON channels.id = file_attachments.channel_id LEFT JOIN file_category_relations ON files.id = file_category_relations.file_id WHERE (channels.name = 'articles' AND object_id = )ORDER BY weight ASC

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 ')ORDER BY weight ASC' at line 16