Error: SQLSTATE[42000]: Syntax error or access violation:
1064 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 published = 1 ORDER BY created_at DESC LIMIT' at line 1

Trace:
#0 /var/www/html/app/Controllers/ContentController.php(128): DB::query('SELECT * FROM public_content WHERE category = AND published = 1 ORDER BY created_at DESC LIMIT')
#1 /var/www/html/public/index.php(45): ContentController->getContentByCategory(NULL)
#2 {main}

Query:
SELECT * FROM public_content WHERE category = AND published = 1 ORDER BY created_at DESC LIMIT

--- End of Error ---