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 'with-patio-in-pollensa-old-town and session_id = "30j5cujl7d5bnptko38h5q90v6"' at line 1: SELECT * FROM reservas WHERE propiedad_fk = comfortable-ground-floor-with-patio-in-pollensa-old-town and session_id = "30j5cujl7d5bnptko38h5q90v6"