An Error Was Encountered
Error Number: 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 '' at line 8
select c.title, c.suptitle , c.teaser, c.ID, b.photopath From ( select distinct TextID, (select photopath from TextXPhotoTable where TextID = x.TextID limit 1) as photopath From TextXPhotoTable x ) b inner join TextTable c ON b.TextID = c.ID inner join WireFrameTable d On d.ContentID = b.TextID where d.SiteNo = 4 AND d.Alias = 'HL' AND d.SectionID =