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-private-garden-ans-pool and session_id = "ri7n1ht4rm054uhrvs9a5isbq3"' at line 1: SELECT * FROM reservas WHERE propiedad_fk = lovely-ground-floor-with-private-garden-ans-pool and session_id = "ri7n1ht4rm054uhrvs9a5isbq3"