A Database Error Occurred

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 'AND ns.news_upldtime <= NOW() AND ns.news_status=1 ORDER BY news_upldtime DESC ' at line 1

SELECT ns.news_id, ns.news_title, ns.news_intro, ns.news_image, nc.cat_id FROM news ns LEFT JOIN newscategory nc ON ns.news_id=nc.news_id WHERE nc.cat_id= AND ns.news_upldtime <= NOW() AND ns.news_status=1 ORDER BY news_upldtime DESC limit 0,6

Filename: /home/heraldftp/public_html/models/ui_newscategory_model.php

Line Number: 39