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