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 'o = '1') OR (termino BETWEEN '2014-04-24' AND '2025-12-24' AND medidas = '300x3' at line 1