SELECT i.image, it.name
			FROM images i INNER JOIN images_text it
			ON i.id = it.image_id
			WHERE i.page_id = 
			

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 '' at line 4

file -
line -