@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | // Build the query for really selecting the post_ids |
112 | 112 | if ($type == 'posts') |
113 | 113 | { |
114 | - $sql = "SELECT {$calc_results}p.post_id |
|
114 | + $sql = "select {$calc_results}p.post_id |
|
115 | 115 | FROM " . $sql_sort_table . POSTS_TABLE . ' p, ' . TOPICS_TABLE . ' t ' . " |
116 | 116 | WHERE $sql_attribute |
117 | 117 | $sql_topic_id |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | } |
126 | 126 | else |
127 | 127 | { |
128 | - $sql = "SELECT {$calc_results}t.topic_id |
|
128 | + $sql = "select {$calc_results}t.topic_id |
|
129 | 129 | FROM " . $sql_sort_table . TOPICS_TABLE . ' t, ' . POSTS_TABLE . " p |
130 | 130 | WHERE $sql_attribute |
131 | 131 | $sql_topic_id |