This need to be:
```
$findShares = \OC_DB::prepare('SELECT `*PREFIX*share`.`id` ' .
```