Возникла ошибка базы данных

Error Number: 1064

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 'ORDER BY date desc LIMIT 4' at line 5

SELECT * FROM (freebies) WHERE `type` IS NULL AND `id` != ORDER BY date desc LIMIT 4