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