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