Error. Database query failed.
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 '\'http:
AND s.prid = h.prid
ORDER BY datepublished DESC,' at line 6
SELECT s.prid as prid, ienheadline, iensubheadline, basicwrite, companyid, companyname,
DATE_FORMAT(datepublished, '%a, %d %b %Y %H:%i:%s -0600') as pubdate
FROM stories s
JOIN storysupheadings h
WHERE datepublished < NOW()
AND h.heading = \'http:
AND s.prid = h.prid
ORDER BY datepublished DESC, prid
LIMIT 20