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