@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | */ |
| 43 | 43 | public function sqlFrom() |
| 44 | 44 | { |
| 45 | - $from = "FROM {$this->table('ratings')} r"; |
|
| 45 | + $from = "from {$this->table('ratings')} r"; |
|
| 46 | 46 | $from = glsr()->filterString('query/sql/from', $from, $this); |
| 47 | 47 | return $from; |
| 48 | 48 | } |
@@ -155,7 +155,7 @@ discard block |
||
| 155 | 155 | ]; |
| 156 | 156 | $select = glsr()->filterArray('query/sql/select', $select, $this); |
| 157 | 157 | $select = implode(', ', $select); |
| 158 | - return "SELECT {$select}"; |
|
| 158 | + return "select {$select}"; |
|
| 159 | 159 | } |
| 160 | 160 | |
| 161 | 161 | /** |