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 'and s.id = ?' at line 6
Array
(
    [type] => 2
    [message] => ReflectionMethod::invokeArgs() expects parameter 1 to be object, boolean given
    [file] => /mnt/bilbo-disk1/websites/broucke.be/www/cms.database.php
    [line] => 1177
)

Fatal error: Call to a member function execute() on boolean in /mnt/bilbo-disk1/websites/broucke.be/www/cms.database.php on line 1182
Array
(
    [type] => 1
    [message] => Call to a member function execute() on boolean
    [file] => /mnt/bilbo-disk1/websites/broucke.be/www/cms.database.php
    [line] => 1182
)