SELECT premises_images.id as id,
						premises_images_text.name
				FROM premises_images INNER JOIN premises_images_text
				ON premises_images.id = premises_images_text.image_id
				AND premises_images_text.language_id = 1
				WHERE premises_images.language_id = 1
				AND premises_images.page_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 7

file - /home/isleofgold/public_html/searchdetails.php
line - 149