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