A database error occurred.
You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND s.`deleted` = 0' at line 3
SELECT s.`code`, s.`type`, s.`value`
FROM `settings` AS s
WHERE s.`event_id` = AND s.`deleted` = 0;