MYSQL Error: 1064: 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 (body.publish_status_id IN (100) OR body.publish_status_id = ' at line 37
SELECT DISTINCT fc2.fusecircuit AS RelatedFuseValue, content_related_content.fusecircuit_related_id, body.dc_title AS orderby_name,
body.dc_date as orderby_date,
fusecircuits.fusecircuit AS FuseValue,
content_related_content.content_related_content_id,
content_related_content.fusecircuit_this_id,
content_related_content.class_id,
content_related_content.orderby_related,
content_related_content.orderby_this,
content_related_content.parent_id,
content_related_content.main_category_flag,
content.*,
body.dc_description AS HTML_DESCRIPTION,
body.* ,
MFfiles.id AS file_id, MFfiles.name AS file_name, MFfiles.size AS file_size,
MFfiles.width AS file_width, MFfiles.height AS file_height,
MFfiles.type AS file_type
FROM content_related_content
LEFT JOIN fusecircuits
ON content_related_content.fusecircuit_this_id = fusecircuits.id
LEFT JOIN fusecircuits as fc2
ON content_related_content.fusecircuit_related_id = fc2.id
INNER JOIN content
ON content_related_content.content_id=content.id
INNER JOIN body
ON content.id = body.id LEFT JOIN MFfiles
ON body.id = MFfiles.id
INNER JOIN content_related_content as crc2
ON content.id = crc2.content_id
LEFT JOIN content_read on content.id = content_read.content_id
WHERE content_read.group_id in(1)
AND crc2.parent_id = 321
AND content_related_content.parent_id IN () AND (body.publish_status_id IN (100)
OR body.publish_status_id = 0
OR body.publish_status_id IS NULL) AND ( ( content.date_publish IS NULL OR content.date_publish = 0 OR content.date_publish
in /home/domains/acl-online.campbellshaw.co.uk/live/12809/lib/monty/monty_switch_funcs.php on line 863
Backtrace: