SELECT pages_text.name as title, pages.id, 
				pages_text.text as text, field1, field2
			FROM pages LEFT JOIN pages_text
			ON pages.id = pages_text.page_id
			WHERE pages_text.language_id = 1
			AND pages.id = 
			AND pages.category = 'polezno'
			AND pages.status != 'deleted'
			

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 pages.category = 'polezno'
			AND pages.status != 'deleted'' at line 7

file -
line -