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