MySQL error!
Database: Resource id #3
The newsQuery: SELECT n.news_id,n.news_datetime,n.news_title,n.news_info,c.category_name,u.user_name FROM bn_news n LEFT JOIN bn_categories c ON n.news_category=c.category_id LEFT JOIN bn_users u ON n.news_author=u.user_id WHERE n.news_status=1 AND n.news_category= ORDER BY n.news_datetime DESC LIMIT 5
The result: 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 'ORDER BY n.news_datetime DESC LIMIT 5' at line 1