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