Commit 463ccb4d authored by Kjartan's avatar Kjartan

- Fixed bug #3398: Error in SQL query in node.module (syndicate block)

parent fa2581ed
......@@ -957,7 +957,7 @@ function node_feed($nodes = 0, $channel = array()) {
*/
if (!$nodes) {
$nodes = db_query_range("SELECT nid, FROM {node} WHERE promote = '1' AND status = '1' ORDER BY created DESC", 0, 15);
$nodes = db_query_range("SELECT nid FROM {node} WHERE promote = '1' AND status = '1' ORDER BY created DESC", 0, 15);
}
while ($node = db_fetch_object($nodes)) {
......
......@@ -957,7 +957,7 @@ function node_feed($nodes = 0, $channel = array()) {
*/
if (!$nodes) {
$nodes = db_query_range("SELECT nid, FROM {node} WHERE promote = '1' AND status = '1' ORDER BY created DESC", 0, 15);
$nodes = db_query_range("SELECT nid FROM {node} WHERE promote = '1' AND status = '1' ORDER BY created DESC", 0, 15);
}
while ($node = db_fetch_object($nodes)) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment