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 sections.active = 1' at line 5


	
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
			Sarah Neville
		
		
	
	
		

Sarah Neville

No sections for the given page ID.
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 active = 1 ORDER BY position ASC' at line 3
SELECT * FROM sections WHERE id = AND active = 1 ORDER BY position ASC