Error Number: 1064
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 published=1 AND titolo_it <> '' ORDER BY position DESC LIMIT 1' at line 1
SELECT id_ami_events, position, titolo_it as titolo FROM ami_events WHERE position < AND published=1 AND titolo_it <> '' ORDER BY position DESC LIMIT 1