SELECT pages.id as id,
							pages_text.name as title,
							pages_text.text as text, field1, field2, pages_text.slug
					FROM pages LEFT JOIN pages_text  
					ON pages.id = pages_text.page_id
					WHERE pages.category = 'kategorii'
					AND pages_text.language_id = 1
					
					'
					AND pages.status != 'deleted'
					ORDER BY order_id ASC
					

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 pages.status != 'deleted'
					ORDER BY order_id ASC' at line 9

file - /home/nemos/public_html/lib/site/simple_page.php
line - 30