MySQL Query : SELECT COUNT(*) as count FROM v9_news n left join v9_news_data p on n.id=p.id where catid=84 and n.status=99 and p.newkxtime > and `status` = '99' ORDER BY p.newkxtime ASC MySQL Error : 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 `status` = '99' ORDER BY p.newkxtime ASC' at line 1 MySQL Errno : 1064 Message : No database selected Need Help?