QUERY: SELECT * FROM ConImageText INNER JOIN `image` ON (`ConImageText`.idImage= `image`.idImage) WHERE (`image`.metaVisible = "1") AND `ConImageText`.idText = AND `image`.metaVisible = 1 AND (`image`.metaVisibleTo IS NULL OR `image`.metaVisibleTo >= CURDATE()) AND (`image`.metaVisibleFrom IS NULL OR `image`.metaVisibleFrom <= CURDATE()) ORDER BY `ConImageText`.metaOrder ASC LIMIT 0,1
ERROR: 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 'AND `image`.metaVisible = 1 AND (`image`.metaVisibleTo IS NULL OR `image`.metaVi' at line 1