xCRUDSomething is wrong in your syntax obok 'AND `website`='on' ORDER BY `date`' w linii 1
SELECT * FROM `actions` WHERE `projectid` =  AND `website`='on' ORDER BY `date`