SELECT 
				pages.id as id,
				if( CHAR_LENGTH(pages_text.name) <> 0 , pages_text.name, 'No name in the selected language') as name,
				DATE_FORMAT(pages.date, '%d-%m-%Y') as `date`
						
				FROM pages_text RIGHT JOIN pages
				ON pages_text.page_id = pages.id
				AND pages_text.language_id = 1
				
				WHERE pages.category = 'marki'
				
				AND pages.status != 'deleted'
				AND pages.id =344∨der=name

Unknown column '344∨der' in 'where clause'

file -
line -