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