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 article_id != ORDER BY article_viewcount DESC LIMIT 15' at line 4
---
SELECT *, DATE_FORMAT(article_submitteddate, '%b %D %Y') AS article_submitteddate2 , DATE_FORMAT(article_submitteddate, '%r') AS article_submitteddatetime FROM ams_articles LEFT JOIN ams_articleratings ON article_id = articlerating_articleid
INNER JOIN ams_users ON user_id = article_submitterid
WHERE article_state = 1
AND article_categoryid = AND article_id != ORDER BY article_viewcount DESC LIMIT 15
---
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 article_id != ORDER BY article_viewcount DESC LIMIT 15' at line 4You 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 article_id != ORDER BY article_viewcount DESC LIMIT 15' at line 4You 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 article_id != ORDER BY article_viewcount DESC LIMIT 15' at line 4You 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 article_id != ORDER BY article_viewcount DESC LIMIT 15' at line 4You 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 article_id != ORDER BY article_viewcount DESC LIMIT 15' at line 4You 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 article_id != ORDER BY article_viewcount DESC LIMIT 15' at line 4You 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 article_id != ORDER BY article_viewcount DESC LIMIT 15' at line 4You 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 article_id != ORDER BY article_viewcount DESC LIMIT 15' at line 4You 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 article_id != ORDER BY article_viewcount DESC LIMIT 15' at line 4You 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 article_id != ORDER BY article_viewcount DESC LIMIT 15' at line 4You 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 article_id != ORDER BY article_viewcount DESC LIMIT 15' at line 4You 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 article_id != ORDER BY article_viewcount DESC LIMIT 15' at line 4You 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 article_id != ORDER BY article_viewcount DESC LIMIT 15' at line 4You 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 article_id != ORDER BY article_viewcount DESC LIMIT 15' at line 4
|
|