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-with-pool-and-fantastic-seaviews and session_id = "s7na3oq3quo6qlt04ovvq...' at line 1: SELECT * FROM reservas WHERE propiedad_fk = villa-with-with-pool-and-fantastic-seaviews and session_id = "s7na3oq3quo6qlt04ovvq65lo7"