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-18' AND '2025-12-18' AND medidas = '300x3' at line 1