Unknown column 'public' in 'where clause': SELECT * FROM reservas WHERE propiedad_fk = public and session_id = "qoh7p1j7mhtgv2b486md0jsjd6"