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