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 'in-the-residential-area-of-pinaret and session_id = "hik80kd7dc3k9s8ahp2nk06515"' at line 1: SELECT * FROM reservas WHERE propiedad_fk = modern-penthouse-apartment-in-the-residential-area-of-pinaret and session_id = "hik80kd7dc3k9s8ahp2nk06515"