$ = String(316) "
		SELECT
		
		p.id,
		p.extcontent,
		p.parent_id,
		p.gallery_id,
		p.active,
		p.visible,
		p.deleted,
		
		c.languages_code,
		c.title,
		c.content,
		c.meta_keywords,
		c.meta_description,
		c.meta_title
		
		
		FROM pages AS p JOIN pages_contents AS c
			ON c.page_id = p.id 
		WHERE updated = 1 AND p.id = 
		"

/conf/func/f_pages.php (line 37)

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 '' at line 21