SELECT N.*,NL.news_url,NL.news_title,NL.news_abstract FROM news_websites AS NW LEFT JOIN news AS N ON NW.news_id=N.news_id LEFT JOIN news_lines AS NL ON N.news_id=NL.news_id WHERE N.news_id<> AND N.status=1 AND NW.website_id=4 AND NL.language_id='pt' ORDER BY N.news_date DESC
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 N.status=1 AND NW.website_id=4 AND NL.language_id='pt' ORDER BY N.news_date ' at line 1