Database 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 'ORDER BY c.commentTime DESC' at line 6 Query: SELECT c.commentID as `id` FROM `comments` AS `c` WHERE c.commentType = "article" AND c.commentDeleted != 1 AND c.commentTypeObjectId = ORDER BY c.commentTime DESC