SELECT pages.id as id, pages_text.name as title, pages_text.text as text, field1, field2, text_2, text_3 FROM pages INNER JOIN pages_text ON pages.id = pages_text.page_id WHERE 1 -- pages.category = 'pages' AND pages_text.slug = 'sidi-varna' AND pages_text.language_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 '' at line 8