Error: SELECT * FROM cms_set1 WHERE attiva = 'SI' ORDER BY CASE WHEN campo80 IS NULL OR campo80 = 'DISPONIBILE' OR campo80 = 'TRATTATIVA IN CORSO' THEN 0 ELSE 1 END, data LIMIT =public/foto/videosorveglianza.jpg&w=150&h=150&a=,12

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 '=public/foto/videosorveglianza.jpg&w=150&h=150&a=,12' at line 1