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-pool-in-puerto-pollensa and session_id = "i6ejod2fufso40n4o7ajb49la7"' at line 1: SELECT * FROM reservas WHERE propiedad_fk = family-villa-with-pool-in-puerto-pollensa and session_id = "i6ejod2fufso40n4o7ajb49la7"