PENN MEDICAL CENTRE ANNOUNCES MONTHLY ORTHORPEDIC CLINIC THIS FRIDAY 29TH AUGUST. APPOINTMENTS FOR ORTHOPEDIC, ULTRASOUND, X-RAY, AND SAME DAY MEDICAL APPOINTMENTS PLEASE CALL 4940481 / 495 3288 FOR CARING PROFESSIONAL SERVICE..VISIT PENN MEDICAL CENTRE FOR "YOUR POSSIBILITIES IN HEALTH"!                               The 2014 Youth Olympic Games from Nanjing, China is “live” on CBN-Television Chan 51 from 19 to 29 August 2014; also watch “live” online www.cbnbvi.com
DB Error: selectList query failed

SELECT SQL_CALC_FOUND_ROWS file_attachments.*, channels.name AS channel, files.name, files.ext, files.title, files.type_id, files.size FROM file_attachments LEFT JOIN files ON files.id = file_attachments.file_id LEFT JOIN channels ON channels.id = file_attachments.channel_id WHERE (channels.name = 'articles' AND object_id = AND (type_id = 1 AND main = 0))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 'AND (type_id = 1 AND main = 0))ORDER BY weight ASC' at line 13